overrideWith method

Style overrideWith(
  1. Style other
)

Returns a new style with the properties of other overriding this style.

Implementation

Style overrideWith(Style other) {
  return copyWith(
    foreground: other.foreground,
    background: other.background,
  );
}