IntegerDataType<L extends List<int>> class
abstract
Properties
-
bits
→ int
-
Returns the size of one value in bits.
no setterinherited
-
defaultValue
→ int
-
Returns the default value, typically equivalent to the zero or null value.
no setteroverride
-
equality
→ Equality<int>
-
Returns an equality relation.
no setteroverride
-
field
→ Field<int>
-
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
-
isSigned
→ bool
-
Returns the true, if this integer is signed.
no setter
-
max
→ int
-
Returns the maximum finite value of this value.
no setterinherited
-
min
→ int
-
Returns the minimum finite value of this value.
no setterinherited
-
name
→ String
-
Returns the name of this DataType.
no setteroverride
-
nullable
→ DataType<int?>
-
Returns a DataType that supports
null
values.
no setterinherited
-
printer
→ Printer<int>
-
Returns a default printer for this data type.
no setteroverride
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
safeBits
→ int
-
Returns the safe bits of an integer value. In the Dart VM integer are
represented using 63 bits and a sign, in JavaScript we only have 53.
no setter
-
safeMax
→ int
-
Returns the maximum safe value of this integer.
no setter
-
safeMin
→ int
-
Returns the minimum safe value of this integer.
no setter
Methods
-
cast(dynamic value)
→ int
-
Casts the argument to this data type, otherwise throw an
ArgumentError.
override
-
castList(Iterable<Object?> elements)
→ List<int>
-
Casts an existing
elements
to this data type.
inherited
-
comparator(int a, int b)
→ int
-
Returns a Comparator that compares one element to another.
override
-
copyList(Iterable<int> iterable, {int? length, int? fillValue, bool readonly = false})
→ List<int>
-
Creates a fixed-length list copy of the
iterable
, possibly with a
modified length
and if necessary populated with fillValue
.
inherited
-
emptyList(int length)
→ L
-
Internal method to create an empty typed-list of the requested
length
.
inherited
-
newList(int length, {Map1<int, int>? generate, int? fillValue, bool readonly = false})
→ List<int>
-
Creates a fixed-length list of this data type.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
readonlyList(L list)
→ L
-
Internal method to make the typed-list read-only.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited