RecordingAuthFeedback class

Feedback that only records what would have been shown, for tests.

Inheritance

Constructors

RecordingAuthFeedback()

Properties

failures → List<Failure>
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
successes → List<String?>
Includes null when a success came without a backend message.
final
warnings → List<AuthWarning>
final

Methods

failure(Failure failure) → void
A backend call failed. Failure.messages may be empty (no connection, unknown error), the app then shows its own text for the failure type.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
success(String? message) → void
A call succeeded. message is the backend's text, null when it sent none, the app decides whether to show anything then.
override
toString() → String
A string representation of this object.
inherited
warning(AuthWarning warning) → void
A local check failed before any backend call.
override

Operators

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