INNER CODE UNIT · Dart
TutorialCoachMark
RafaelBarbosatec/tutorial_coach_mark · lib/tutorial_coach_mark.dart:49
class TutorialCoachMark {
/// List of targets to focus during the tutorial sequence.
final List<TargetFocus> targets;
/// Callback executed before focus
final FutureOr<void> Function(TargetFocus)? beforeFocus;
/// Callback executed when a target area is tapped.
final FutureOr<void> Function(TargetFocus)? onClickTarget;
/// Callback executed when a target is tapped, providing tap position details.
final FutureOr<void> Function(TargetFocus, TapDownDetails)?
onClickTargetWithTapPosition;
/// Callback executed when the overlay area (outside target) is tapped.
final FutureOr<void> Function(TargetFocus)? onClickOverlay;
/// Callback executed when the tutorial is completed.