TooltipPositionDelegate typedef

TooltipPositionDelegate = Offset Function(TooltipPositionContext context)

Signature for computing the position of a tooltip.

The TooltipPositionContext contains all the necessary information for positioning the tooltip, including the target location, sizes, offset, and positioning preference.

Returns the offset from the top left of the overlay to the top left of the tooltip.

See also:

Implementation

typedef TooltipPositionDelegate = Offset Function(TooltipPositionContext context);