Type class

Refers to Type For the Dart Type system, see: https://dart.dev/guides/language/type-system For the Dart build in types, see: https://dart.dev/guides/language/language-tour#built-in-types

Inheritance

Constructors

Type(String name, {String? libraryUri, List<Type> generics = const [], bool nullable = false})
Type.ofBigInt({bool nullable = false})
Type.ofBool({bool nullable = false})
Type.ofDateTime({bool nullable = false})
Type.ofDouble({bool nullable = false})
Type.ofDuration({bool nullable = false})
Type.ofDynamic({bool nullable = false})
Type.ofFuture(Type type, {bool nullable = false})
Type.ofInt({bool nullable = false})
Type.ofList({Type? genericType, bool nullable = false})
Type.ofMap({Type? keyType, Type? valueType, bool nullable = false})
Type.ofNum({bool nullable = false})
Type.ofSet({Type? genericType, bool nullable = false})
Type.ofStream(Type type, {bool nullable = false})
Type.ofString({bool nullable = false})
Type.ofUri({bool nullable = false})
Type.ofVar()

Properties

generics List<Type>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
libraryUri String?
finalinherited
name String
final
nullable bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

codeNodes(Context context) List<CodeNode>
inherited
codeNodesToWrap(Context context) List<CodeNode>
Hook
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toUnFormattedString(Context context) String
Recursive call to get the unformatted code from all nodes
inherited

Operators

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