CoachStep constructor
const
CoachStep({
- required GlobalKey<
State< targetKey,StatefulWidget> > - required String title,
- required List<
String> description, - bool shouldShow()?,
- bool showIf = true,
- VoidCallback? onNext,
- VoidCallback? onSkip,
- String? nextButtonText,
- String? skipButtonText,
- bool showSkipButton = true,
Creates a new showcase coach step.
The targetKey must be attached to a widget in the widget tree.
The title and description are displayed in the tooltip card.
Use shouldShow for dynamic visibility logic, or showIf for simple
boolean conditions. If both are provided, shouldShow takes precedence.
Implementation
const CoachStep({
required this.targetKey,
required this.title,
required this.description,
this.shouldShow,
this.showIf = true,
this.onNext,
this.onSkip,
this.nextButtonText,
this.skipButtonText,
this.showSkipButton = true,
});