CoachStep constructor

const CoachStep({
  1. required GlobalKey<State<StatefulWidget>> targetKey,
  2. required String title,
  3. required List<String> description,
  4. bool shouldShow()?,
  5. bool showIf = true,
  6. VoidCallback? onNext,
  7. VoidCallback? onSkip,
  8. String? nextButtonText,
  9. String? skipButtonText,
  10. 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,
});