TooltipPositionDelegate typedef
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:
- TooltipPositionContext, which contains the positioning parameters.
Implementation
typedef TooltipPositionDelegate = Offset Function(TooltipPositionContext context);