StatusBadge class

A per-plugin or per-worktree glyph small enough for a tab or a switcher row.

Distinct from Status: a status is a sentence, a badge is a mark. The worktree switcher shows badges for worktrees that are not open, so a badge must be cheap to compute.

Constructors

StatusBadge(StatusBadgeKind kind, {Tone tone = Tone.neutral, int? count, bool pulsing = false})
const
StatusBadge.count(int count, {Tone tone = Tone.neutral})
const
StatusBadge.dot(Tone tone, {bool pulsing = false})
const

Properties

count → int?
final
hashCode → int
The hash code for this object.
no setteroverride
isEmpty → bool
no setter
kind → StatusBadgeKind
final
pulsing → bool
A hint that the badge wants attention — Claude parked waiting on you, a build that just went red. Renderers may ignore it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tone → Tone
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Map<String, Object?> json) → StatusBadge

Constants

none → const StatusBadge