HintArrowGeometry class Theming

Where the caret sits and which way it points, handed to a HintArrowBuilder.

Everything is already resolved for the side the bubble landed on, so a custom caret is written once and works on all four edges: build it from baseCentre, along and tip rather than from raw x/y.

Annotations

Constructors

HintArrowGeometry({required Offset baseCentre, required Offset along, required Offset tip, required double halfWidth, required HintSide side, required Size size})
Creates the geometry handed to a custom arrow builder.
const

Properties

along → Offset
A unit vector along that edge.
final
baseCentre → Offset
The midpoint of the caret's base, on the bubble's edge.
final
baseEnd → Offset
The base corner on the along-positive side.
no setter
baseStart → Offset
The base corner on the along-negative side.
no setter
halfWidth → double
Half the caret's width along the edge.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
side → HintSide
The side of the target the bubble sits on.
final
size → Size
The caret's box: width along the edge, height away from it.
final
tip → Offset
The point of the caret, HintThemeData.arrowSize.height away from the bubble in the direction of the target.
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