TutorialCoachMark constructor

TutorialCoachMark(
  1. BuildContext _context, {
  2. required List<TargetFocus> targets,
  3. Color colorShadow = Colors.black,
  4. dynamic onClickTarget(
    1. TargetFocus
    )?,
  5. dynamic onClickOverlay(
    1. TargetFocus
    )?,
  6. dynamic onFinish()?,
  7. double paddingFocus = 10,
  8. dynamic onSkip()?,
  9. AlignmentGeometry alignSkip = Alignment.bottomRight,
  10. String textSkip = "SKIP",
  11. TextStyle textStyleSkip = const TextStyle(color: Colors.white),
  12. bool hideSkip = false,
  13. double opacityShadow = 0.8,
  14. Duration focusAnimationDuration = const Duration(milliseconds: 600),
  15. Duration pulseAnimationDuration = const Duration(milliseconds: 500),
  16. Widget? skipWidget,
})

Implementation

TutorialCoachMark(this._context,
    {required this.targets,
      this.colorShadow = Colors.black,
      this.onClickTarget,
      this.onClickOverlay,
      this.onFinish,
      this.paddingFocus = 10,
      this.onSkip,
      this.alignSkip = Alignment.bottomRight,
      this.textSkip = "SKIP",
      this.textStyleSkip = const TextStyle(color: Colors.white),
      this.hideSkip = false,
      this.opacityShadow = 0.8,
      this.focusAnimationDuration = const Duration(milliseconds: 600),
      this.pulseAnimationDuration = const Duration(milliseconds: 500),
      this.skipWidget})
    : assert(opacityShadow >= 0 && opacityShadow <= 1);