over method
Paint this on top of other — this wins where it sets a value.
Mnemonic: top.over(bottom).
Implementation
Style over(Style? other) {
if (other == null) return this;
return Style(
fg: fg ?? other.fg,
bg: bg ?? other.bg,
bold: bold || other.bold,
italic: italic || other.italic,
underline: underline || other.underline,
dim: dim || other.dim,
reverse: reverse || other.reverse,
strikethrough: strikethrough || other.strikethrough,
);
}