UpdatePolicy enum
Constructors
- UpdatePolicy()
-
const
Values
- error → const UpdatePolicy
-
Throw an exception. This is the default when no policy is specified for
add()
orcreate()
.This behavior is the same as passing
update: false
toadd()
orcreate()
. - modified → const UpdatePolicy
-
Overwrite only properties in the existing object which are different from the new values. This results in change notifications reporting only the properties which changed, and influences the sync merge logic.
If few or no of the properties are changing this will be faster than .all and reduce how much data has to be written to the Realm file. If all of the properties are changing, it may be slower than .all (but will never result in more data being written).
- all → const UpdatePolicy
-
Overwrite all properties in the existing object with the new values, even if they have not changed. This results in change notifications reporting all properties as changed, and influences the sync merge logic.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
UpdatePolicy> - A constant List of the values in this enum, in order of their declaration.