onStepBack property
Defines what should happen if the previus step is called
If the function returns true, the default behavior will still be executed after it.
Parameters:
context: The build context of the widget triggering the next step.resultFunction: A function that returns a QuestionResult object.
Returns:
trueif the default behavior should still be executed after this function,falseotherwise.
Implementation
final bool Function(
BuildContext context,
QuestionResult Function()? resultFunction,
)? onStepBack;