type_utils library

Classes

Builder
Builder interface
GenericError
HugeUnionType<T1, T2, T3, T4, T5, T6, T7, T8, T9>
Implementer<T>
Foundation class for implementing subtype from a base type. Thought to be used on immutable types (like String, int, etc)
MultiUnionType<T1, T2, T3, T4, T5>
TemplateError
UnionType<T1, T2>

Functions

instanceType(Object object) Type
Represents the type of the Instance of the Object. For example a Map is by default represented by the instance of the class "_InternalLinkedHashMap"
isNullable<T>() bool
rockBottomType<T>([T? object]) Type
This method allows the definition of literal types with generics (at present Dart does not allow this) and the detection of an object "rock-bottom" type; For example, Maps are by default represented by an instance of the class "_InternalLinkedHashMap", but this method will return the defined (or inferred type) Map. You can call it specifying the type (rockBottomType