SuperTooltip constructor
SuperTooltip({Key tooltipContainerKey, @required Widget content, OutSideTapHandler onClose, double minWidth, double minHeight, double maxWidth, double maxHeight, double top, double right, double bottom, double left, double minimumOutSidePadding: 20.0, ShowCloseButton showCloseButton: ShowCloseButton.none, bool snapsFarAwayVertically: false, bool snapsFarAwayHorizontally: false, bool hasShadow: true, double borderWidth: 2.0, double borderRadius: 10.0, Color borderColor: Colors.black, Color closeButtonColor: Colors.black, double closeButtonSize: 30.0, double arrowLength: 20.0, double arrowBaseWidth: 20.0, double arrowTipDistance: 2.0, Color backgroundColor: Colors.white, Color outsideBackgroundColor: const Color.fromARGB(50, 255, 255, 255), ClipAreaShape touchThroughAreaShape: ClipAreaShape.oval, double touchThroughAreaCornerRadius: 5.0, Rect touchThrougArea })
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.borderWidth = 2.0,
this.borderRadius = 10.0,
this.borderColor = Colors.black,
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,
}) : assert(popupDirection != null),
assert(content != null),
assert((maxWidth ?? double.infinity) >= (minWidth ?? 0.0)),
assert((maxHeight ?? double.infinity) >= (minHeight ?? 0.0));