An interface to access typed values by keys of type K.
Normally K is either String or int, but could be other types also.
Implementations should support accessing at least following types: String,
int, BigInt, double, bool, DateTime, Identifier and Null.
- Implemented types
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
exists(
K key) → bool -
Returns true if the
keyreferences an existing value, null or non-null.inherited -
existsNonNull(
K key) → bool -
Returns true if a value at
keyexists and that value is non-null.inherited -
existsNull(
K key) → bool -
Returns true if a value at
keyexists and that value is null.inherited -
getBigInt(
K key, {BigInt? min, BigInt? max}) → BigInt -
Returns a value at
keyasBigInt.inherited -
getBool(
K key) → bool -
Returns a value at
keyasbool.inherited -
getDouble(
K key, {double? min, double? max}) → double -
Returns a value at
keyasdouble.inherited -
getId(
K key) → Identifier -
Returns a value at
keyas Identifier. -
getInt(
K key, {int? min, int? max}) → int -
Returns a value at
keyasint.inherited -
getNum(
K key, {num? min, num? max}) → num -
Returns a value at
keyasnum.inherited -
getString(
K key) → String -
Returns a value at
keyasString.inherited -
getTimeUTC(
K key, {DateTime parse(Object?)?}) → DateTime -
Returns a value at
keyasDateTimein the UTC time zone. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
tryBigInt(
K key, {BigInt? min, BigInt? max}) → BigInt? -
Returns a value at
keyasBigIntor null if missing.inherited -
tryBool(
K key) → bool? -
Returns a value at
keyasboolor null if missing.inherited -
tryDouble(
K key, {double? min, double? max}) → double? -
Returns a value at
keyasdoubleor null if missing.inherited -
tryId(
K key) → Identifier? -
Returns a value at
keyas Identifier or null if missing. -
tryInt(
K key, {int? min, int? max}) → int? -
Returns a value at
keyasintor null if missing.inherited -
tryNum(
K key, {num? min, num? max}) → num? -
Returns a value at
keyasnumor null if missing.inherited -
tryString(
K key) → String? -
Returns a value at
keyasStringor null if missing.inherited -
tryTimeUTC(
K key, {DateTime parse(Object?)?}) → DateTime? -
Returns a value at
keyasDateTimein the UTC time zone, or null.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
K key) → Object? -
Returns a value at
key, the result can be of any object or null.