SuperTooltip constructor

SuperTooltip({
  1. Key? tooltipContainerKey,
  2. required Widget content,
  3. required TooltipDirection popupDirection,
  4. OutSideTapHandler? onClose,
  5. double? minWidth,
  6. double? minHeight,
  7. double? maxWidth,
  8. double? maxHeight,
  9. double? top,
  10. double? right,
  11. double? bottom,
  12. double? left,
  13. double minimumOutSidePadding = 20.0,
  14. ShowCloseButton showCloseButton = ShowCloseButton.none,
  15. bool snapsFarAwayVertically = false,
  16. bool snapsFarAwayHorizontally = false,
  17. bool hasShadow = true,
  18. Color shadowColor = Colors.black54,
  19. double shadowBlurRadius = 10.0,
  20. double shadowSpreadRadius = 5.0,
  21. double borderWidth = 2.0,
  22. double borderRadius = 10.0,
  23. Color borderColor = Colors.black,
  24. IconData closeButtonIcon = Icons.close,
  25. Color closeButtonColor = Colors.black,
  26. double closeButtonSize = 30.0,
  27. double arrowLength = 20.0,
  28. double arrowBaseWidth = 20.0,
  29. double arrowTipDistance = 2.0,
  30. Color backgroundColor = Colors.white,
  31. Color outsideBackgroundColor = const Color.fromARGB(50, 255, 255, 255),
  32. ClipAreaShape touchThroughAreaShape = ClipAreaShape.oval,
  33. double touchThroughAreaCornerRadius = 5.0,
  34. Rect? touchThrougArea,
  35. bool dismissOnTapOutside = true,
  36. bool blockOutsidePointerEvents = true,
  37. bool containsBackgroundOverlay = true,
  38. LayerLink? targetLink,
  39. int animationDuration = 300,
  40. Offset? tooltipOffset,
  41. TargetMode targetMode = TargetMode.center,
})

Implementation

SuperTooltip({
  this.tooltipContainerKey,
  required this.content, // The contents of the tooltip.
  required this.popupDirection,
  this.onClose,
  this.minWidth,
  this.minHeight,
  this.maxWidth,
  this.maxHeight,
  this.top,
  this.right,
  this.bottom,
  this.left,
  this.minimumOutSidePadding = 20.0,
  this.showCloseButton = ShowCloseButton.none,
  this.snapsFarAwayVertically = false,
  this.snapsFarAwayHorizontally = false,
  this.hasShadow = true,
  this.shadowColor = Colors.black54,
  this.shadowBlurRadius = 10.0,
  this.shadowSpreadRadius = 5.0,
  this.borderWidth = 2.0,
  this.borderRadius = 10.0,
  this.borderColor = Colors.black,
  this.closeButtonIcon = Icons.close,
  this.closeButtonColor = Colors.black,
  this.closeButtonSize = 30.0,
  this.arrowLength = 20.0,
  this.arrowBaseWidth = 20.0,
  this.arrowTipDistance = 2.0,
  this.backgroundColor = Colors.white,
  this.outsideBackgroundColor = const Color.fromARGB(50, 255, 255, 255),
  this.touchThroughAreaShape = ClipAreaShape.oval,
  this.touchThroughAreaCornerRadius = 5.0,
  this.touchThrougArea,
  this.dismissOnTapOutside = true,
  this.blockOutsidePointerEvents = true,
  this.containsBackgroundOverlay = true,
  this.targetLink,
  this.animationDuration = 300,
  this.tooltipOffset,
  this.targetMode = TargetMode.center,
})  : assert((maxWidth ?? double.infinity) >= (minWidth ?? 0.0)),
      assert((maxHeight ?? double.infinity) >= (minHeight ?? 0.0));