StatusItem class sealed

A typed item that can be displayed in a StatusLine.

Unlike a raw Widget list, StatusItem provides semantic types that enable consistent rendering and automatic width calculation.

StatusItem.text('[INSERT]')
StatusItem.keyHint('^C', 'Quit')
StatusItem.progress(50, 100)
StatusItem.spinner(frameIndex)
StatusItem.spacer()

Constructors

StatusItem.keyHint(String key, String action)
A keyboard shortcut hint (e.g., "^C Quit").
const
factory
StatusItem.progress(int current, int total)
A progress percentage display (e.g., "50%").
const
factory
StatusItem.spacer()
A flexible spacer that expands to fill available space.
const
factory
StatusItem.spinner(int frameIndex)
A braille spinner that cycles through frames.
const
factory
StatusItem.text(String text)
Plain text item.
const
factory
StatusItem.widget(Widget widget)
A custom widget item.
factory

Properties

displayWidth int
Calculate the display width of this item in terminal cells.
no setter
hashCode int
The hash code for this object.
no setterinherited
isSpacer bool
Whether this item is a spacer.
no setter
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
renderToString() String
Render this item to a display string.
toString() String
A string representation of this object.
inherited

Operators

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