PatchOperation class

Class representing a patch operation.

Constructors

PatchOperation.add(String path, dynamic value)
Creates a new "PatchOperationType.add" patch operation.
PatchOperation.decr(String path, num value)
Creates a new "PatchOperationType.decr" patch operation. This is implemented as a "PatchOperationType.incr" operation with the opposite value.
PatchOperation.incr(String path, num value)
Creates a new "PatchOperationType.incr" patch operation.
PatchOperation.remove(String path)
Creates a new "PatchOperationType.remove" patch operation.
PatchOperation.replace(String path, dynamic value)
Creates a new "PatchOperationType.replace" patch operation.
PatchOperation.set(String path, dynamic value)
Creates a new "PatchOperationType.set" patch operation.

Properties

hashCode int
The hash code for this object.
no setterinherited
path String
The target property path.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type PatchOperationType
The operation's type.
final
value → dynamic
The value used to apply the operation..
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this instance to a JSON object.
toString() String
A string representation of this object.
inherited

Operators

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