ValueAccessorMixin<K> mixin
base
A base mixin with a partial implementation of ValueAccessor.
- Implemented types
- Mixin Applications
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
key
references an existing value, null or non-null.inherited -
existsNonNull(
K key) → bool -
Returns true if a value at
key
exists and that value is non-null.override -
existsNull(
K key) → bool -
Returns true if a value at
key
exists and that value is null.override -
getBigInt(
K key, {BigInt? min, BigInt? max}) → BigInt -
Returns a value at
key
asBigInt
.override -
getBool(
K key) → bool -
Returns a value at
key
asbool
.override -
getDouble(
K key, {double? min, double? max}) → double -
Returns a value at
key
asdouble
.override -
getId(
K key) → Identifier -
Returns a value at
key
as Identifier.override -
getInt(
K key, {int? min, int? max}) → int -
Returns a value at
key
asint
.override -
getNum(
K key, {num? min, num? max}) → num -
Returns a value at
key
asnum
.override -
getString(
K key) → String -
Returns a value at
key
asString
.override -
getTimeUTC(
K key, {DateTime parse(Object?)?}) → DateTime -
Returns a value at
key
asDateTime
in the UTC time zone.override -
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
key
asBigInt
or null if missing.override -
tryBool(
K key) → bool? -
Returns a value at
key
asbool
or null if missing.override -
tryDouble(
K key, {double? min, double? max}) → double? -
Returns a value at
key
asdouble
or null if missing.override -
tryId(
K key) → Identifier? -
Returns a value at
key
as Identifier or null if missing.override -
tryInt(
K key, {int? min, int? max}) → int? -
Returns a value at
key
asint
or null if missing.override -
tryNum(
K key, {num? min, num? max}) → num? -
Returns a value at
key
asnum
or null if missing.override -
tryString(
K key) → String? -
Returns a value at
key
asString
or null if missing.override -
tryTimeUTC(
K key, {DateTime parse(Object?)?}) → DateTime? -
Returns a value at
key
asDateTime
in the UTC time zone, or null.override
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.inherited