FieldUpdate class

Defines the structure of a field update

Constructors

FieldUpdate({required String field, required UpdateType updateType, dynamic value})

Properties

field String
The name of the field whose value will be updated. The field name can be in dot-notation to specify sub-object fields (e.g., field.subField). Please note that only sub-model object fields can be accessed through the dot-notation. You cannot create an update instruction for an object-list field through the dot-notation.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateType UpdateType
Defines how the field will be updated.
getter/setter pair
value ↔ dynamic
The value that will be used during the field update. Depending on the update type the value will have different meaning.
getter/setter pair

Methods

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

Operators

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