TooltipPositionContext class

Contextual information for positioning a tooltip.

This immutable data class contains all the necessary information for computing the position of a tooltip relative to its target widget.

See also:

Annotations

Constructors

TooltipPositionContext({required Offset target, required Size targetSize, required Size tooltipSize, required double verticalOffset, bool preferBelow = true, Size overlaySize = Size.infinite})
Creates a tooltip position context.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
overlaySize → Size
The size of the overlay within which the tooltip is displayed.
final
preferBelow → bool
Whether the tooltip prefers to be positioned below the target.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
target → Offset
The center point of the target widget in the global coordinate system.
final
targetSize → Size
The size of the target widget that triggers the tooltip.
final
tooltipSize → Size
The size of the tooltip itself.
final
verticalOffset → double
The configured vertical offset.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override