SaveFailure class

Failed save result.

Inheritance

Constructors

SaveFailure({required SaveFailureReason reason, required SaveContext context, Object? error, StackTrace? stackTrace, SaveEnvelope? envelope, String? raw, bool backupWritten = false, bool primaryWritten = false})
Creates a failure result.
const

Properties

backupWritten bool
Whether a backup write succeeded.
final
context SaveContext
Context for the save boundary.
final
envelope SaveEnvelope?
Envelope that was going to be written.
final
error Object?
Optional error that caused the failure.
final
hashCode int
The hash code for this object.
no setterinherited
primaryWritten bool
Whether the primary write succeeded.
final
raw String?
Raw encoded save data when available.
final
reason SaveFailureReason
Failure reason.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
Optional stack trace for the failure.
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