UpdateOptions class

Defines the options for an object update operation

Inheritance

Constructors

UpdateOptions({required Cache? cache, required bool returnTop})
const

Properties

cache Cache?
Specify whether to cache the updated object using its id as the cache key or not. If the object is cached and the timeout has expired, the cached object will automatically be removed from the cache.
final
hashCode int
The hash code for this object.
no setterinherited
returnTop bool
In case if you update a submodel object (a child object of a top-level object), you can specify whether to return the newly updated child object or the updated top-level object.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

merge(UpdateOptions? other) UpdateOptions
Merge Options. this is default, other is user defined.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert to JsonMap
override
toString() String
A string representation of this object.
inherited

Operators

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