MutableDictionaryInterface class abstract Document

Defines a set of methods for getting and setting dictionary data.

Implemented types
Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
keys List<String>
The keys of the entries in this dictionary.
no setterinherited
length int
The number of entries in this dictionary.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

array(String key) MutableArray?
Returns the value for the given key as an MutableArray.
override
blob(String key) Blob?
Returns the value for the given key as a Blob.
inherited
boolean(String key) bool
Returns the value for the given key as a bool.
inherited
contains(String key) bool
Returns whether an entry with the given key exists in this dictionary.
inherited
date(String key) DateTime?
Returns the value for the given key as a DateTime.
inherited
dictionary(String key) MutableDictionary?
Returns the value for the given key as a MutableDictionary.
override
float(String key) double
Returns the value for the given key as a floating point number.
inherited
integer(String key) int
Returns the value for the given key as an integer number.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
number(String key) num?
Returns the value for the given key as a num.
inherited
removeValue(String key) → void
Removes the entry with the given key.
setArray(Array? value, {required String key}) → void
Sets an Array for the given key.
setBlob(Blob? value, {required String key}) → void
Sets a Blob for the given key.
setBoolean(bool value, {required String key}) → void
Sets a bool for the given key.
setData(Map<String, Object?> data) → void
Replaces the entries of this dictionary with those of the given Map.
setDate(DateTime? value, {required String key}) → void
Sets a DateTime for the given key.
setDictionary(Dictionary? value, {required String key}) → void
Sets a Dictionary for the given key.
setFloat(double value, {required String key}) → void
Sets a floating point number for the given key.
setInteger(int value, {required String key}) → void
Sets an integer number for the given key.
setNumber(num? value, {required String key}) → void
Sets a num for the given key.
setString(String? value, {required String key}) → void
Sets a String for the given key.
setValue(Object? value, {required String key}) → void
Sets a value for the given key.
string(String key) String?
Returns the value for the given key as a String.
inherited
toPlainMap() Map<String, Object?>
Deeply converts this dictionary into a representation of plain Dart objects and returns it.
inherited
toString() String
A string representation of this object.
inherited
value<T extends Object>(String key) → T?
Returns the value for the given key.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) MutableFragment
Returns a MutableFragment for the value at the given key.
inherited