SubZeroFeatureTourController class
A controller for managing complex feature tours with multiple steps.
Example usage:
final controller = SubZeroFeatureTourController(
tourId: 'main_tour_v1',
steps: [
SubZeroCoachMarkStep(targetKey: key1, title: 'Step 1', description: '...'),
SubZeroCoachMarkStep(targetKey: key2, title: 'Step 2', description: '...'),
],
);
// Start the tour if not completed
await controller.startIfNotCompleted(context);
Constructors
-
SubZeroFeatureTourController({required String tourId, required List<
SubZeroCoachMarkStep> steps, VoidCallback? onComplete, VoidCallback? onSkip})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onComplete → VoidCallback?
-
final
- onSkip → VoidCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
steps
→ List<
SubZeroCoachMarkStep> -
final
- tourId → String
-
final
Methods
-
hasCompleted(
) → Future< bool> - Check if the tour has been completed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → Future< void> - Reset the tour so it can be shown again.
-
start(
BuildContext context) → Future< void> - Start the tour regardless of completion status.
-
startIfNotCompleted(
BuildContext context) → Future< bool> - Start the tour only if it hasn't been completed.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited