ApplyResult class

--- ApplyResult --- Result of trying to apply a batch of items (to local or remote storage) Provides success flag and optional error details.

Constructors

ApplyResult({required bool success, List<ApplyError> errors = const []})
ApplyResult.failure(List<ApplyError> errors)
Failure factory
factory
ApplyResult.success()
Success factory
factory

Properties

errors List<ApplyError>
List of errors for failed items
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool
True if the operation succeeded
final

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