mergedOver method
Field-wise merge: the receiver's mentioned fields win, unmentioned
ones fall back to base (the preset's partial).
Implementation
StatusLineSegmentOptions mergedOver(StatusLineSegmentOptions base) =>
StatusLineSegmentOptions(
modelShowThinkingLevel:
modelShowThinkingLevel ?? base.modelShowThinkingLevel,
pathAbbreviate: pathAbbreviate ?? base.pathAbbreviate,
pathMaxLength: pathMaxLength ?? base.pathMaxLength,
pathStripWorkPrefix: pathStripWorkPrefix ?? base.pathStripWorkPrefix,
gitShowBranch: gitShowBranch ?? base.gitShowBranch,
gitShowStaged: gitShowStaged ?? base.gitShowStaged,
gitShowUnstaged: gitShowUnstaged ?? base.gitShowUnstaged,
gitShowUntracked: gitShowUntracked ?? base.gitShowUntracked,
time24h: time24h ?? base.time24h,
timeShowSeconds: timeShowSeconds ?? base.timeShowSeconds,
);