TypeToken class

Constructors

TypeToken.of(Type type)
factory
TypeToken.ofBool()
factory
TypeToken.ofDouble()
factory
TypeToken.ofDynamic()
factory
TypeToken.ofFullName(String fullTypeName)
factory
TypeToken.ofInt()
factory
TypeToken.ofName(String _typeName, [List<TypeToken> generics = const []])
TypeToken.ofName2(String typeName, [List<Type> generics = const []])
TypeToken.ofString()
factory
TypeToken.ofVoid()
factory
TypeToken.parse(Object obj)
factory

Properties

firstGeneric TypeToken
read-only
fullTypeName String
read-only
generics List<TypeToken>
read-only
hasGeneric bool
read-only
hashCode int
The hash code for this object. [...]
read-only, override
isBool bool
read-only
isDouble bool
read-only
isDynamic bool
read-only
isInt bool
read-only
isList bool
read-only
isMap bool
read-only
isNativeType bool
read-only
isNotPrimitive bool
read-only
isPrimitive bool
read-only
isString bool
read-only
isVoid bool
read-only
nativeType Type
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secondGeneric TypeToken
read-only
typeName String
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override
operator [](int index) TypeToken

Static Methods

ofList<T>() TypeToken
ofListByToken(TypeToken componentType) TypeToken
ofListByType(Type componentType) TypeToken
ofMap<K, V>() TypeToken
ofMapByToken(TypeToken keyType, TypeToken valueType) TypeToken
ofMapByType(Type keyType, Type valueType) TypeToken