FTooltip class
A tooltip displays information related to a widget when focused, hovered over, or long pressed.
Note: The tooltip will not be shown when long pressed if the child contains a GestureDetector that has a long-press callback.
See:
- https://forui.dev/docs/overlay/tooltip for working examples.
 - FTooltipController for controlling a tooltip.
 - FTooltipStyle for customizing a tooltip's appearance.
 
- Inheritance
 - 
    
- Object
 - DiagnosticableTree
 - Widget
 - StatefulWidget
 - FTooltip
 
 
Constructors
- 
          FTooltip({required Widget tipBuilder(BuildContext context, FTooltipController controller), FTooltipController? controller, FTooltipStyle style(FTooltipStyle style)?, AlignmentGeometry tipAnchor = Alignment.bottomCenter, AlignmentGeometry childAnchor = Alignment.topCenter, FPortalSpacing spacing = const FPortalSpacing(4), Offset shift(Size size, FPortalChildBox childBox, FPortalBox portalBox) = FPortalShift.flip, bool hover = true, Duration hoverEnterDuration = const Duration(milliseconds: 500), Duration hoverExitDuration = Duration.zero, bool longPress = true, Duration longPressExitDuration = const Duration(milliseconds: 1500), ValueWidgetBuilder<
FTooltipController> builder = _builder, Widget? child, Key? key}) - 
          Creates a tooltip.
            const
 
Properties
- 
  builder
  → ValueWidgetBuilder<
FTooltipController>  - 
  An optional builder which returns the child widget that the tooltip is aligned to.
  final
 - child → Widget?
 - 
  The child tp which the tip is aligned to.
  final
 - childAnchor → AlignmentGeometry
 - 
  The anchor of the target to which the tipAnchor is aligned. Defaults to Alignment.topCenter.
  final
 - controller → FTooltipController?
 - 
  The tooltip's controller.
  final
 - hashCode → int
 - 
  The hash code for this object.
  no setterinherited
 - hover → bool
 - 
  True if the tooltip should be shown when hovered over. Defaults to true.
  final
 - hoverEnterDuration → Duration
 - 
  The duration to wait before showing the tooltip after the user hovers over the target. Defaults to 0.5 seconds.
  final
 - hoverExitDuration → Duration
 - 
  The duration to wait before hiding the tooltip after the user has stopped hovering over the target. Defaults to 0.
  final
 - key → Key?
 - 
  Controls how one widget replaces another widget in the tree.
  finalinherited
 - longPress → bool
 - 
  True if the tooltip should be shown when long pressed. Defaults to true.
  final
 - longPressExitDuration → Duration
 - 
  The duration to wait before hiding the tooltip after the user has stopped pressing the target. Defaults to 1.5
seconds.
  final
 - runtimeType → Type
 - 
  A representation of the runtime type of the object.
  no setterinherited
 - shift → Offset Function(Size size, FPortalChildBox childBox, FPortalBox portalBox)
 - 
  The shifting strategy used to shift a tooltip's tip when it overflows out of the viewport. Defaults to
FPortalShift.flip.
  final
 - spacing → FPortalSpacing
 - 
  The spacing between the child's anchor and tooltip's anchor. Defaults to 
FPortalSpacing(4).final - style → FTooltipStyle Function(FTooltipStyle style)?
 - 
  The tooltip's style.
  final
 - tipAnchor → AlignmentGeometry
 - 
  The anchor of the follower to which the childAnchor is aligned. Defaults to Alignment.bottomCenter.
  final
 - tipBuilder → Widget Function(BuildContext context, FTooltipController controller)
 - 
  The tip builder. The child passed to tipBuilder will always be null.
  final
 
Methods
- 
  createElement(
) → StatefulElement  - 
  Creates a StatefulElement to manage this widget's location in the tree.
  inherited
 - 
  createState(
) → State< FTooltip>  - 
  Creates the mutable state for this widget at a given location in the tree.
  override
 - 
  debugDescribeChildren(
) → List< DiagnosticsNode>  - 
  Returns a list of DiagnosticsNode objects describing this node's
children.
  inherited
 - 
  debugFillProperties(
DiagnosticPropertiesBuilder properties) → void  - 
  Add additional properties associated with the node.
  override
 - 
  noSuchMethod(
Invocation invocation) → dynamic  - 
  Invoked when a nonexistent method or property is accessed.
  inherited
 - 
  toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode  - 
  Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
  inherited
 - 
  toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String  - 
  A string representation of this object.
  inherited
 - 
  toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String  - 
  Returns a string representation of this node and its descendants.
  inherited
 - 
  toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String  - 
  Returns a one-line detailed description of the object.
  inherited
 - 
  toStringShort(
) → String  - 
  A short, textual description of this widget.
  inherited
 
Operators
- 
  operator ==(
Object other) → bool  - 
  The equality operator.
  inherited