StatusLineSegmentOptions class final

Per-segment render options (segmentOptions:). Fields the user did not mention stay null; the omp defaults resolve through the accessors (showThinkingLevel, maxLength, …) and mergedOver merges a user partial over a preset base.

Constructors

StatusLineSegmentOptions({bool? modelShowThinkingLevel, bool? pathAbbreviate, int? pathMaxLength, bool? pathStripWorkPrefix, bool? gitShowBranch, bool? gitShowStaged, bool? gitShowUnstaged, bool? gitShowUntracked, bool? time24h, bool? timeShowSeconds})
const

Properties

abbreviate → bool
no setter
clock24h → bool
no setter
gitShowBranch → bool?
final
gitShowStaged → bool?
final
gitShowUnstaged → bool?
final
gitShowUntracked → bool?
final
hashCode → int
The hash code for this object.
no setterinherited
maxLength → int
no setter
modelShowThinkingLevel → bool?
final
pathAbbreviate → bool?
final
pathMaxLength → int?
final
pathStripWorkPrefix → bool?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showBranch → bool
no setter
showSeconds → bool
no setter
showStaged → bool
no setter
showThinkingLevel → bool
omp defaults (the !== false readings — on unless switched off).
no setter
showUnstaged → bool
no setter
showUntracked → bool
no setter
stripWorkPrefix → bool
no setter
time24h → bool?
final
timeShowSeconds → bool?
final

Methods

mergedOver(StatusLineSegmentOptions base) → StatusLineSegmentOptions
Field-wise merge: the receiver's mentioned fields win, unmentioned ones fall back to base (the preset's partial).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
toYaml() → String
YAML fragment (the segmentOptions: block inside tui.statusLine:), grouped into the model/path/git/time subsections the parser reads, only non-default mentions — the file stays minimal. Empty string when nothing non-default is set.
withPathMaxLength(int maxLength) → StatusLineSegmentOptions
A copy with pathMaxLength replaced — the truncation ladder's path-shrink re-render seam.

Operators

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