TooltipComponentBuilder typedef

TooltipComponentBuilder = Widget Function(BuildContext context, Animation<double> animation)

Signature for building the tooltip overlay child.

The animation property exposes the underlying tooltip overlay child show and hide animation. This can be used to drive animations that sync up with the tooltip overlay child show/hide animation, for example to fade the tooltip in and out.

Implementation

typedef TooltipComponentBuilder =
    Widget Function(BuildContext context, Animation<double> animation);