Style constructor

const Style({
  1. Color? foreground,
  2. Color? background,
  3. int modifiers = Modifier.none,
})

Creates a style with the specified colors and modifiers.

Implementation

const Style({
  this.foreground,
  this.background,
  this.modifiers = Modifier.none,
});