over method

Style over(
  1. Style? other
)

Paint this on top of otherthis 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,
  );
}