TransferCodec<T> class
Properties
-
decode
→ T Function(Object)
-
final
-
encode
→ dynamic Function(T)
-
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
isIterable
→ bool
-
Checks if
T
is an Iterable of any type.
no setterinherited
-
isList
→ bool
-
Checks if
T
is a List of any type.
no setterinherited
-
isMap
→ bool
-
Checks if
T
is a Map of any type.
no setterinherited
-
isNullable
→ bool
-
Checks if
T
is nullable.
no setterinherited
-
name
→ String
-
Returns the name of the
T
.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
toIterable
→ TypeCheck<Iterable<T>>
-
Returns a
TypeCheck
object for type Iterable<T>
.
no setterinherited
-
toList
→ TypeCheck<List<T>>
-
Returns a
TypeCheck
object for type List<T>
.
no setterinherited
-
toNullable
→ TypeCheck<T?>
-
Returns a
TypeCheck
object for type T?
.
no setterinherited
Methods
-
isExact<TOther>()
→ bool
-
Returns true if
TOther
is exactly T
.
inherited
-
isListOf<E>()
→ bool
-
Checks if
T
is a List of type List<E>
.
inherited
-
isMapOf<K, V>()
→ bool
-
Checks if
T
is a List of type Map<K, V>
.
inherited
-
isSubtypeOf<TSuper>()
→ bool
-
Returns true if instance of
T
is applicable to TSuper
,
as if you would check new T() is TSuper
.
inherited
-
isSupertypeOf<TSub>()
→ bool
-
Returns true if instance of
TSub
is applicable to T
,
as if you would check new TSub() is T
.
inherited
-
matches<TOther>()
→ bool
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited