Patch class

Class representing a series of operations to modify a document.

Implementers

Constructors

Patch()

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
The document's id.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(String path, dynamic value) → void
Adds a property identified by path with value to the target document.
decrement(String path, [num value = 1]) → void
Decrements the property identified by path by value in the target document.
increment(String path, [num value = 1]) → void
Increments the property identified by path by value in the target document.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String path) → void
Removes the property identified by path from the target document.
replace(String path, dynamic value) → void
Replaces the property identified by path with value in the target document.
set(String path, dynamic value) → void
Sets the property identified by path with value in the target document.
setCondition(String condition) → void
Sets the condition to decide whether this patch should be applied to the target document.
toJson() Map<String, dynamic>
Serializes this instance to a JSON object.
override
toString() String
A string representation of this object.
inherited
withParam(String name, dynamic value) → void
Registers a parameter's value, used in the patch's condition.

Operators

operator ==(Object other) bool
The equality operator.
inherited