InputIcon class final

An icon an input shows (Icon): a glyph as the icon node's icon prop ({"source", "name", "codepoint", ...} or an image), its size and color, and the actions a tap on it runs.

Inheritance

Constructors

InputIcon({Json icon = const {}, double size = 24, Color? color, List<Reaction> actions = const []})
factory

Properties

actions → List<Reaction>
Reactions run when the icon is tapped.
no setter
color → Color?
no setter
fields → Props
The values that differ from the defaults.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
icon → Json
The glyph, as the icon widget's icon prop.
no setter
isEmpty → bool
Whether every field has its default.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → double
no setter
spec → WidgetSpec
The declared fields.
no setteroverride

Methods

get<T>(PropDef<T> field) → T
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set<T>(PropDef<T> field, T value) → InputIcon
toJson() → Json
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Object? json) → InputIcon?