ModifierBuilder class

Constructors

ModifierBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
map Map<String, dynamic>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addToSet(String fieldName, dynamic value) ModifierBuilder
Adds elements to an array only if they do not already exist in the set.
inc(String fieldName, dynamic value) ModifierBuilder
Increments the value of the field by the specified amount.
max(String fieldName, dynamic value) ModifierBuilder
Only updates the field if the specified value is greater than the existing field value.
min(String fieldName, dynamic value) ModifierBuilder
Only updates the field if the specified value is less than the existing field value
mul(String fieldName, dynamic value) ModifierBuilder
Multiplies the value of the field by the specified amount
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
popFirst(String fieldName) ModifierBuilder
The popFirst operator removes the first element of an array.
popLast(String fieldName) ModifierBuilder
The popLast operator removes the last element of an array.
pull(String fieldName, dynamic value) ModifierBuilder
The pull operator removes from an existing array all instances of a value that match a specified condition.
pullAll(String fieldName, List values) ModifierBuilder
The pull operator removes from an existing array all instances of values that match a specified condition.
push(String fieldName, dynamic value) ModifierBuilder
Adds an item to an array.
pushAll(String fieldName, List values) ModifierBuilder
Removes all matching values from an array.
rename(String oldName, String newName) ModifierBuilder
set(String fieldName, dynamic value) ModifierBuilder
setOnInsert(String fieldName, dynamic value) ModifierBuilder
toString() String
A string representation of this object.
override
unset(String fieldName) ModifierBuilder

Operators

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