RPTaskNavigation class

The navigation of an RPUITask, handed to an RPBottomNavigationBuilder.

It exposes what the default bottom bar does — advance, go back, cancel — together with the state those actions depend on, so that a custom bar can be built without reaching into the task's internals.

Constructors

RPTaskNavigation({required VoidCallback? onNext, required VoidCallback? onBack, required VoidCallback onCancel, required bool canProceed, required RPStep? currentStep, required int stepIndex, required int stepCount})
const

Properties

canProceed bool
Whether the current step is ready to be left, i.e. whether onNext is non-null.
final
currentStep RPStep?
The step currently on screen.
final
hashCode int
The hash code for this object.
no setterinherited
onBack VoidCallback?
Returns to the previous step, or null on the first step of the task, where there is nothing to go back to.
final
onCancel VoidCallback
Cancels the task, after asking the participant to confirm in a dialog.
final
onNext VoidCallback?
Advances to the next step, or null while the current step is not ready to be left — an unanswered question, typically.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stepCount int
The number of steps in the task — for an RPNavigableOrderedTask not every step is necessarily shown, so it is an upper bound rather than an exact total.
final
stepIndex int
The zero-based index of currentStep.
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