type_detection library

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