Change<T> class sealed

A patch value that distinguishes omission, assignment and SQL DEFAULT.

Use .keep() to omit, .set(value) to write, or .defaultValue() to request the database default. Setting null is legal only for a nullable field.

Constructors

Change.defaultValue()
Requests the database default for this field.
const
factory
Change.keep()
Leaves the field out of the update.
const
factory
Change.set(T value)
Writes the supplied value, including an explicitly allowed null.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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