InteractableTooltip class
Represents a displayable tooltip.
Constructors
- InteractableTooltip({required String text, double xShift = 1, double yShift = 1})
-
Creates a new InteractableTooltip instance.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object?> -
The properties list.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The tooltip text.
final
- xShift → double
-
Controls how this tooltip should be shifted in the
x
coordinate.final - yShift → double
-
Controls how this tooltip should be shifted in the
y
coordinate.final
Methods
-
calculateX(
Offset mousePosition, bool fromRight) → double -
Calculates the
x
coordinate according to the providedmousePosition
. -
calculateY(
Offset mousePosition, bool fromBottom) → double -
Calculates the
y
coordinate according to the providedmousePosition
. -
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