HintStep constructor

const HintStep({
  1. required String targetId,
  2. List<String> moreTargets = const [],
  3. List<HintTooltip> moreTooltips = const [],
  4. String? title,
  5. String? description,
  6. TooltipPosition position = TooltipPosition.auto,
  7. Duration? waitTimeout,
  8. bool showSkip = true,
  9. bool tapOnTarget = true,
  10. bool tapOnOverlay = true,
  11. void onTapTarget(
    1. HintTooltipContext ctx,
    2. TapDownDetails details
    )?,
  12. void onTapOverlay(
    1. HintTooltipContext ctx,
    2. TapDownDetails details
    )?,
  13. Widget tooltipBuilder(
    1. BuildContext context,
    2. HintStep step,
    3. HintTooltipContext ctx
    )?,
})

Implementation

const HintStep({
  required this.targetId,
  this.moreTargets = const [],
  this.moreTooltips = const [],
  this.title,
  this.description,
  this.position = TooltipPosition.auto,
  this.waitTimeout,
  this.showSkip = true,
  this.tapOnTarget = true,
  this.tapOnOverlay = true,
  this.onTapTarget,
  this.onTapOverlay,
  this.tooltipBuilder,
})  : assert(targetId != '', 'HintStep.targetId must not be empty'),
      assert(
        title != null || tooltipBuilder != null,
        'HintStep must have title/description (zero-config) or tooltipBuilder'
        ' (custom tooltip)',
      );