Update class
Annotation for define an update method. Methods that annotated with this annotation can have only one input parameter that is an Entity or List of an Entity and cannot be nullable. If the input parameter is Entity, the return type can be Future
@Update(onConflict: OnConflictStrategy.replace)
Future<void> update(Note note);
@Update(onConflict: OnConflictStrategy.replace)
Future<void> bulkUpdate(List<Note> notes);
Constructors
- Update({OnConflictStrategy? onConflict})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onConflict → OnConflictStrategy?
-
final
- 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
Static Properties
- fields ↔ _UpdateFields
-
getter/setter pair