TextComponentStyle constructor

const TextComponentStyle({
  1. AnsiColorType? color,
  2. AnsiColorType? bgColor,
  3. Set<FontStyle>? styles,
  4. EdgeInsets padding = const EdgeInsets.all(0),
  5. EdgeInsets margin = const EdgeInsets.all(0),
})

Creates a TextComponentStyle with optional color, background color, font styles, and padding/margin settings.

If styles is omitted, defaults to an empty set. Padding and margin default to zero on all sides.

Implementation

const TextComponentStyle({
  this.color,
  this.bgColor,
  Set<FontStyle>? styles,
  this.padding = const EdgeInsets.all(0),
  this.margin = const EdgeInsets.all(0),
}) : styles = styles ?? const <FontStyle>{};