NumericDataType class

Inheritance

Constructors

NumericDataType()
const

Properties

defaultValue num
Returns the default value, typically equivalent to the zero or null value.
no setteroverride
equality Equality<num>
Returns an equality relation.
no setteroverride
field Field<num>
Returns a mathematical field, if available.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isNullable bool
Returns true, if this DataType supports null values.
no setterinherited
name String
Returns the name of this DataType.
no setteroverride
nullable DataType<num?>
Returns a DataType that supports null values.
no setterinherited
printer → Printer<num>
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) num
Casts the argument to this data type, otherwise throw an ArgumentError.
override
castList(Iterable<Object?> elements) List<num>
Casts an existing iterable to this data type.
inherited
comparator(num a, num b) int
Returns a Comparator that compares one element to another.
override
copyList(Iterable<num> iterable, {int? length, num? fillValue, bool readonly = false}) List<num>
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, num>? generate, num? fillValue, bool readonly = false}) List<num>
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.
inherited