ModelStatusBar class
A one-line status bar for the active model: provider/name, lifecycle state, and — when known — mode, latency, and queue depth, with a TokenMeter beside it by default. The line recolors as the runtime moves between states (connecting, ready, streaming, degraded, error).
- Inheritance
-
- Object
- Widget
- StatelessWidget
- ModelStatusBar
- Available extensions
Constructors
- ModelStatusBar({Key? key, required ModelStatusInfo info, String label = 'Model status', bool showTokenMeter = true, int tokenMeterWidth = 10})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → ModelStatusInfo
-
Model, lifecycle, and token state to present.
final
- key → Key?
-
finalinherited
- label → String
-
Semantic label for the complete status bar.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showTokenMeter → bool
-
Whether to show a TokenMeter beside the model summary.
final
- tokenMeterWidth → int
-
Number of cells used by the optional token meter's bar.
final
Methods
-
animate(
{Duration? duration, Curve? curve, Object? trigger, bool repeat = false}) → Animate -
Available on Widget, provided by the AnimateExtension extension
Starts an Animate chain over this widget.duration/curveapply to the whole chain. With notriggerit plays on mount; with a non-null trigger it rests on mount and replays whenever the token changes. -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates the Element that will mount this widget into the tree.
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