TextComponentStyle constructor
const
TextComponentStyle({
- AnsiColorType? color,
- AnsiColorType? bgColor,
- Set<
FontStyle> ? styles, - EdgeInsets padding = const EdgeInsets.all(0),
- 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>{};