ObjectDataType<T> class

Inheritance

Constructors

ObjectDataType(T defaultValue)
const

Properties

defaultValue → T
Returns the default value, typically equivalent to the zero or null value.
final
equality Equality<T>
Returns an equality relation.
no setterinherited
field Field<T>
Returns a mathematical field, if available.
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
isNullable bool
Returns true, if this DataType supports null values.
no setteroverride
name String
Returns the name of this DataType.
no setteroverride
nullable ObjectDataType<T?>
Returns a DataType that supports null values.
no setteroverride
printer → Printer<T>
Returns a default printer for this data type.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cast(dynamic value) → T
Casts the argument to this data type, otherwise throw an ArgumentError.
override
castList(Iterable<Object?> elements) List<T>
Casts an existing iterable to this data type.
inherited
comparator(T a, T b) int
Returns a Comparator that compares one element to another.
inherited
copyList(Iterable<T> iterable, {int? length, T? fillValue, bool readonly = false}) List<T>
Creates a fixed-length list copy of the iterable, possibly with a modified length and if necessary populated with fillValue.
inherited
newList(int length, {Map1<int, T>? generate, T? fillValue, bool readonly = false}) List<T>
Creates a fixed-length list of this data type.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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