Icon class

Displays a single Unicode character (glyph) with optional color styling.

Use for rendering box-drawing characters, icons, or other single-character symbols in the terminal.

Inheritance

Constructors

Icon({Key? key, required String icon, Color? color})
Creates an Icon displaying icon with an optional color.
const

Properties

color Color?
The color of the icon glyph.
final
hashCode int
The hash code for this object.
no setterinherited
icon String
The glyph character to display.
final
key Key?
Controls how one widget replaces another in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates the Element for this widget.
inherited
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