FTooltip constructor

const FTooltip({
  1. required Widget tipBuilder(
    1. BuildContext context,
    2. FTooltipController controller
    ),
  2. FTooltipControl control = const .managed(),
  3. FTooltipStyleDelta style = const .context(),
  4. AlignmentGeometry tipAnchor = .bottomCenter,
  5. AlignmentGeometry childAnchor = .topCenter,
  6. FPortalSpacing spacing = const .spacing(4),
  7. FPortalOverflow overflow = .flip,
  8. bool? hover,
  9. Duration? hoverEnterDuration,
  10. Duration? hoverExitDuration,
  11. bool? longPress,
  12. Duration? longPressExitDuration,
  13. ValueWidgetBuilder<FTooltipController> builder = _builder,
  14. Widget? child,
  15. Key? key,
})

Creates a tooltip.

Contract

Throws AssertionError if neither builder nor child is both provided.

Implementation

const FTooltip({
  required this.tipBuilder,
  this.control = const .managed(),
  this.style = const .context(),
  this.tipAnchor = .bottomCenter,
  this.childAnchor = .topCenter,
  this.spacing = const .spacing(4),
  this.overflow = .flip,
  this.hover,
  this.hoverEnterDuration,
  this.hoverExitDuration,
  this.longPress,
  this.longPressExitDuration,
  this.builder = _builder,
  this.child,
  super.key,
}) : assert(builder != _builder || child != null, 'Either builder or child must be provided.');