RawTooltip constructor

const RawTooltip({
  1. Key? key,
  2. required String? semanticsTooltip,
  3. required TooltipComponentBuilder tooltipBuilder,
  4. Duration hoverDelay = Duration.zero,
  5. Duration touchDelay = const Duration(milliseconds: 1500),
  6. Duration dismissDelay = const Duration(milliseconds: 100),
  7. bool enableTapToDismiss = true,
  8. TooltipTriggerMode triggerMode = TooltipTriggerMode.longPress,
  9. bool enableFeedback = true,
  10. TooltipTriggeredCallback? onTriggered,
  11. AnimationStyle animationStyle = _kDefaultAnimationStyle,
  12. TooltipPositionDelegate? positionDelegate,
  13. required Widget child,
})

Creates a raw tooltip.

The semanticsTooltip, tooltipBuilder, and child arguments are required.

Implementation

const RawTooltip({
  super.key,
  required this.semanticsTooltip,
  required this.tooltipBuilder,
  this.hoverDelay = Duration.zero,
  this.touchDelay = const Duration(milliseconds: 1500),
  this.dismissDelay = const Duration(milliseconds: 100),
  this.enableTapToDismiss = true,
  this.triggerMode = TooltipTriggerMode.longPress,
  this.enableFeedback = true,
  this.onTriggered,
  this.animationStyle = _kDefaultAnimationStyle,
  this.positionDelegate,
  required this.child,
});