SerializableMap class abstract
Interface that should be implemented by all the generated serializable classes
Constructors
- SerializableMap()
-
const
Properties
-
entries
→ Iterable<
MapEntry< String, dynamic> > -
The map entries of this.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
check if the object keys is empty
no setteroverride
- isNotEmpty → bool
-
check if the object keys is empty
no setteroverride
-
keys
→ Iterable<
String> -
Returns the field names of the Object
no setteroverride
- length → int
-
return the length of keys
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- values → Iterable
-
return the attributes values
no setteroverride
Methods
-
addAll(
Map map) → void -
Add all the values the the
map
into the object.override -
addEntries(
Iterable< MapEntry> newEntries) → void -
Adds all key/value pairs of
newEntries
to this map.override -
cast<
RK, RV> () → Map< RK, RV> -
Provides a view of this map as having
RK
keys andRV
instances, if necessary.override -
clear(
) → void -
Sets all the attributes values to null.
override
-
containsKey(
Object? key) → bool -
Checks if the object has any attribute with the name of
key
override -
containsValue(
Object? value) → bool -
Check if any of the attributes contains the
value
.override -
forEach(
void f(String attribute, dynamic value)) → void -
runs function
f
for eachattribute
-value
pairoverride -
fromMap(
Map map) → void -
Add all the values the the
map
into the current object. Is the same as addAll -
map<
K2, V2> (MapEntry< K2, V2> f(String key, dynamic value)) → Map<K2, V2> -
Returns a new map where all entries of this map are transformed by
the given
convert
function.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putIfAbsent(
String key, dynamic ifAbsent()) → dynamic -
does nothing
override
-
remove(
Object? attribute) → dynamic -
Sets the
attribute
value to nulloverride -
removeWhere(
bool predicate(String key, dynamic value)) → void -
Removes all entries of this map that satisfy the given
test
.override -
toMap(
) → Map - Create a Map from the values of the object.
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
String key, dynamic update(dynamic value), {dynamic ifAbsent()?}) → dynamic -
Updates the value for the provided
key
.override -
updateAll(
dynamic update(String key, dynamic value)) → void -
Updates all values.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
Object? key) → dynamic -
The value for the given
key
, ornull
ifkey
is not in the map.inherited -
operator []=(
String key, dynamic value) → void -
Associates the
key
with the givenvalue
.inherited