ModuloDataType<T> class
Constructors
-
ModuloDataType(DataType<
T> delegate, T modulus)
Properties
- defaultValue → T
-
Returns the default value, typically equivalent to the zero or null value.
no setteroverride
-
delegate
→ DataType<
T> -
final
-
equality
→ Equality<
T> -
Returns an equality relation.
final
-
field
→ Field<
T> -
Returns a mathematical field, if available.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNullable → bool
-
Returns true, if this DataType supports
null
values.no setterinherited - modulus → T
-
final
- name → String
-
Returns the name of this DataType.
no setteroverride
-
nullable
→ DataType<
T?> -
Returns a DataType that supports
null
values.no setterinherited -
printer
→ Printer<
T> -
Returns a default printer for this data type.
no setteroverride
- 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 list to this data type.
inherited
-
comparator(
T a, T b) → int -
Returns a Comparator that compares one element to another.
override
-
copyList(
Iterable< T> list, {int? length, T? fillValue}) → List<T> -
Creates a fixed-length list copy of this data type, possibly with a
modified
length
and if necessary populated withfillValue
.inherited -
newList(
int length, [T? fillValue]) → 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.
inherited