ClassDefinition class Null safety

Class introspection information for DefinitionMacros.

Implemented types
Available Extensions

Constructors

ClassDefinition()

Properties

constructors Iterable<MethodDefinition>
read-only, override
fields Iterable<FieldDefinition>
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
isAbstract bool
read-only, inherited
isExternal bool
read-only, inherited
isNullable bool
Whether or not the type reference is explicitly nullable (contains a trailing ?)
read-only, inherited
methods Iterable<MethodDefinition>
read-only, override
name String
The name of the type as it exists in the type annotation.
read-only, inherited
reference Code
Emits a piece of code that concretely refers to the same type that is referred to by this, regardless of where in the program it is placed. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scope Scope
The scope in which the type reference appeared in the program.
read-only, inherited
superclass ClassDefinition?
read-only, override
superinterfaces Iterable<TypeDefinition>
read-only, override
typeArguments Iterable<TypeDefinition>
The type arguments, if applicable.
read-only, inherited
typeParameters Iterable<TypeParameterDefinition>
read-only, inherited

Methods

isSubtype(TypeDeclaration other) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited