TypeDeclaration class
A specific instance of a type.
- Annotations
-
- @immutable
Constructors
-
TypeDeclaration.new({required String baseName, required bool isNullable, List<
TypeDeclaration> typeArguments = const <TypeDeclaration>[]}) -
Constructor for TypeDeclaration.
const
- TypeDeclaration.voidDeclaration()
-
Void constructor.
const
Properties
- baseName → String
-
The base name of the TypeDeclaration (ex 'Foo' to 'Foo
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isNullable → bool
-
True if the type is nullable.
final
- isVoid → bool
-
Returns true if the declaration represents 'void'.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
typeArguments
→ List<
TypeDeclaration> -
The type arguments to the entity (ex 'Bar' to 'Foo
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override