RecordingAuthFeedback class
Feedback that only records what would have been shown, for tests.
- Inheritance
-
- Object
- AuthFeedback
- RecordingAuthFeedback
Constructors
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
nullwhen 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.
messageis the backend's text,nullwhen 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