MutableDictionary constructor
Creates a MutableDictionary, optionally initialized with data
.
Allowed value types are Iterable, Array, Blob, DateTime,
Map<String, Object?>, Dictionary, null
, number types, and String.
The collections must contain only the above types.
Implementation
factory MutableDictionary([Map<String, Object?>? data]) {
final dictionary = MutableDictionaryImpl(MDict());
if (data != null) {
dictionary.setData(data);
}
return dictionary;
}