IconDataExt class abstract final

Scoped parser — avoids polluting all String instances with icon logic.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

parse(String source, {IconData fallback = Icons.question_mark}) → IconData
Returns fallback (default: Icons.question_mark) on any parse failure.
tryParse(String source) → IconData?
Returns null if source is empty, not valid JSON, or missing codePoint.