GlyphHint class

One icon / image / text / fill drawn on screen, collected at capture time so the normalizer can (a) name an icon-only tappable and (b) tell which item of a custom tab row is drawn differently (the selected one).

rect is in root logical pixels — the same space as RawNode.bounds.

Constructors

GlyphHint({required GlyphKind kind, required Rect rect, String name = '', String source = '', Object? style, String state = '', Rect? scrollRect, bool round = false})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
kind → GlyphKind
final
name → String
Derived human name (GlyphKind.icon / GlyphKind.image only), or ''.
final
rect → Rect
final
round → bool
GlyphKind.fill / GlyphKind.outline only: the decoration is drawn as a circle (BoxShape.circle, a CircleBorder, or corner radii of at least half its shorter side) — what a custom radio indicator looks like.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollRect → Rect?
Rect (root logical px) of the nearest Scrollable this glyph was drawn inside, or null when it is not scrolling content. Lets the normalizer ignore content scrolling UNDER an overlaid nav bar.
final
source → String
What the glyph was drawn from, as written: an image's asset path or URL, an SVG's asset name or URL, an icon's table name (GlyphKind.icon / GlyphKind.image only), or ''. Click analytics name from it with the RN rule (visualClickName); the tree names from name.
final
state → String
on / off when an asset name carried an explicit state suffix (_active / _inactive …), else ''.
final
style → Object?
An equality-comparable style token (colors, weights, sizes, opacity). Compared with == only — never stringified.
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.
inherited