The recovery actions that apply in a given context. Every error view offers the same choices in the same order: Retry, Go home, Back, Restart.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
canGoBack(
BuildContext context) → bool - Whether there is a page to go back to.
-
canGoHome(
BuildContext context, [VyuhFailure? failure]) → bool - Whether "Go home" can help: the router exists, the failure allows it, and the failure is not on the home route itself.
-
goBack(
BuildContext context) → void - Goes back one page.
-
goHome(
) → void - Goes to the home route.
-
needsRestart(
BuildContext context, [VyuhFailure? failure]) → bool - Whether only a restart can help: there is no router yet, or the platform failed to initialize.
-
restart(
) → void - Restarts the platform. This rebuilds the whole app, so it is the last resort.