WaitForContextTutorialStep class

A tutorial step that waits for a specific BuildContext to become current.

For example, useful for checking if a dialog has been opened.

Inheritance

Constructors

WaitForContextTutorialStep({required TutorialID tutorialID, dynamic loadFromRepository()?, Duration? duration, TutorialStep? replayStep, void onFinished(TutorialBloc?)?})
Creates a WaitForContextTutorialStep with the given parameters.

Properties

hashCode → int
The hash code for this object.
no setterinherited
loadFromRepository → dynamic Function()?
A function to load data from a repository
finalinherited
onFinished → void Function(TutorialBloc?)
A function to call when the step is finished successfully.
finalinherited
replayStep → TutorialStep?
An optional step to replay if the condition is not met within the timeout.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeout → Duration
The maximum duration to wait for the condition to be met.
finalinherited
tutorialID → TutorialID
The unique enum identifier for this tutorial step.
finalinherited

Methods

execute(TutorialBloc? tutorialBloc) → Future<void>
Executes the waiting step.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performConditionCheck() → Future<bool>
Performs the condition check for this waiting step.
override
setLoadingFunction({required TutorialRepository tutorialRepository}) → WaitForContextTutorialStep
Sets the loading function for this step using the provided tutorialRepository.
override
toString() → String
A string representation of this object.
inherited

Operators

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