MutableDocument class

Inheritance

Constructors

MutableDocument([Map data, String id ])

Properties

id String
The document's ID.
read / write, override-getter
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getList<T>(String key) List<T>
Get a property's value as a List Object, which is a mapping object of an array value. Returns null if the property doesn't exists, or its value is not an array. [...]
override
getMap<K, V>(String key) Map<K, V>
Get a property's value as a Map Object, which is a mapping object of a dictionary value. Returns nil if the property doesn't exists, or its value is not a dictionary. [...]
override
remove(String key) → dynamic
Removes a given key and its value. [...]
setArray(String key, List value) → dynamic
Set a List object for the given key. [...]
setBoolean(String key, bool value) → dynamic
Set a boolean value for the given key. [...]
setDouble(String key, double value) → dynamic
Set a double value for the given key. [...]
setInt(String key, int value) → dynamic
Set an int value for the given key. [...]
setList(String key, List value) → dynamic
Set a List object for the given key. [...]
setMap(String key, Map value) → dynamic
Set a Map Object object for the given key. A nil value will be converted to an NSNull. [...]
setString(String key, String value) → dynamic
Set a String value for the given key. [...]
setValue(String key, Object value) → dynamic
Set a value for the given key. Allowed value types are Array, Map, Number types, null, String, Array Object, Map and nil. The Arrays and Maps must contain only the above types. TODO A Date object will be converted to an ISO-8601 format string. [...]
toMap() Map<String, dynamic>
Gets content of the current object as a Dictionary. [...]
override
toMutable() MutableDocument
Returns the same MutableDocument object. [...]
override
contains(String key) bool
Tests whether a property exists or not. This can be less expensive than value(forKey:), because it does not have to allocate an object for the property value. [...]
inherited
count() int
The number of properties in the document.
inherited
getArray<T>(String key) List<T>
Get a property's value as a List Object, which is a mapping object of an array value. Returns null if the property doesn't exists, or its value is not an array. [...]
inherited
getBoolean(String key) bool
Gets a property's value as a boolean value. Returns true if the value exists, and is either true or a nonzero number. [...]
inherited
getDouble(String key) double
Gets a property's value as a double value. Integers will be converted to double. The value true is returned as 1.0, false as 0.0. Returns 0.0 if the property doesn't exist or does not have a numeric value. [...]
inherited
getInt(String key) int
Gets a property's value as an int value. Floating point values will be rounded. The value true is returned as 1, false as 0. Returns 0 if the property doesn't exist or does not have a numeric value. [...]
inherited
getKeys() List<String>
An array containing all keys, or an empty array if the document has no properties.
inherited
getString(String key) String
Gets a property's value as a string. Returns null if the property doesn't exist, or its value is not a string. [...]
inherited
getValue(String key) Object
Gets a property's value. The value types are Blob, ArrayObject, DictionaryObject, Number, or String based on the underlying data type; or null if the value is null or the property doesn't exist. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited