PositionManager class
Calculates the position of the tooltip and the arrow on the screen Verifies if the desired position fits the screen. If it doesn't the position changes automatically.
Constructors
- PositionManager({required bool showArrow, required ElementBox arrowBox, required ElementBox triggerBox, required ElementBox overlayBox, required ElementBox screenSize, double distance = 0.0, double radius = 0.0})
Properties
- arrowBox → ElementBox
-
arrowBox width, height, position x and y of the arrow.
final
- distance → double
-
distance between the tooltip and the trigger button.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- overlayBox → ElementBox
-
overlayBox width, height, position x and y of the overlay.
final
- radius → double
-
radius border radius amount of the tooltip.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenSize → ElementBox
-
screenSize width and height of the current screen.
final
- showArrow → bool
-
final
- triggerBox → ElementBox
-
triggerBox width, height, position x and y of the trigger.
final
Methods
-
load(
{TooltipPosition? preferredPosition}) → ToolTipElementsDisplay - Load the calculated tooltip position
-
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.
inherited