TypeDeclaration class

A specific instance of a type.

Annotations
  • @immutable

Constructors

TypeDeclaration({required String baseName, required bool isNullable, Enum? associatedEnum, Class? associatedClass, AstProxyApi? associatedProxyApi, List<TypeDeclaration> typeArguments = const <TypeDeclaration>[]})
Constructor for TypeDeclaration.
const
TypeDeclaration.voidDeclaration()
Void constructor.
const

Properties

associatedClass Class?
Associated Class, if any.
final
associatedEnum Enum?
Associated Enum, if any.
final
associatedProxyApi AstProxyApi?
Associated AstProxyApi, if any.
final
baseName String
The base name of the TypeDeclaration (ex 'Foo' to 'Foo
final
hashCode int
The hash code for this object.
no setteroverride
isClass bool
Whether the TypeDeclaration has an associatedClass.
no setter
isEnum bool
Whether the TypeDeclaration has an associatedEnum.
no setter
isNullable bool
Whether the type is nullable.
final
isProxyApi bool
Whether the TypeDeclaration has an associatedProxyApi.
no setter
isVoid bool
Whether the declaration represents 'void'.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeArguments List<TypeDeclaration>
Whether the type arguments to the entity (ex 'Bar' to 'Foo
final

Methods

copyWithClass(Class classDefinition) TypeDeclaration
Returns duplicated TypeDeclaration with attached associatedClass value.
copyWithEnum(Enum enumDefinition) TypeDeclaration
Returns duplicated TypeDeclaration with attached associatedEnum value.
copyWithProxyApi(AstProxyApi proxyApiDefinition) TypeDeclaration
Returns duplicated TypeDeclaration with attached associatedProxyApi value.
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