Tutorial<T> class

A controller for managing tutorial steps and state in a Flutter app.

Constructors

Tutorial(Map<T, List<TutorialStep>> _tutorials)

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

endTutorial(T tutorialId) → void
Ends the tutorial with the given tutorialId.
nextStep(T tutorialId, {String? route, bool backToPreviousPage = false, BuildContext? context}) → void
Advances to the next step in the tutorial. If route is provided, navigates to that route. If backToPreviousPage is true, pops the current page.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previousStep(T tutorialId, {String? route, bool backToPreviousPage = false, BuildContext? context}) → void
Goes back to the previous step in the tutorial. If route is provided, navigates to that route. If backToPreviousPage is true, pops the current page.
provide(Widget child) → Widget
Wraps the app with a ChangeNotifierProvider to provide the tutorial state.
startTutorial(T tutorialId) → void
Starts the tutorial with the given tutorialId.
toString() → String
A string representation of this object.
inherited
updateTutorial(Map<T, List<TutorialStep>> newTutorials) → void

Operators

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