WalletIcons class
The host's icon hook (FR-49 W-5): one function from a WalletGlyph to a
widget, so a host's glyphs need not be IconData (Relim's are painted from
SVG paths). Registered in ThemeData.extensions; optional.
- Inheritance
-
- Object
- ThemeExtension<
WalletIcons> - WalletIcons
- Annotations
Constructors
- WalletIcons({WalletIconBuilder? builder})
-
const
Properties
- builder → WalletIconBuilder?
-
The host's renderer, or null for Material everywhere.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{WalletIconBuilder? builder}) → WalletIcons -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
draw(
BuildContext context, WalletGlyph glyph, {double? size, Color? color, String? semanticLabel}) → Widget -
glyphdrawn by the host's builder, or as its Material default when the host has none or does not map it. -
lerp(
covariant WalletIcons? other, double t) → WalletIcons -
A renderer does not interpolate: a theme switch takes the incoming one at
the midpoint.
override
-
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
Static Methods
-
of(
BuildContext context) → WalletIcons - The registered hook, or material when the host registered none. A missing icon hook is not a wiring error (unlike missing colours): the SDK's glyphs are a complete, working default.
Constants
- material → const WalletIcons
- The SDK's own default: Material glyphs.