VText constructor
const
VText(
- String? data, {
- TextStyle? style,
- TextAlign? align,
- int? maxLines,
- TextOverflow? overflow,
- TextScaler? textScaler,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- String? semanticsLabel,
- String? semanticsIdentifier,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- Color? selectionColor,
Creates a VText with optional parameters.
Implementation
const VText(
this.data, {
TextStyle? style,
TextAlign? align,
int? maxLines,
TextOverflow? overflow,
TextScaler? textScaler,
this.strutStyle,
this.textDirection,
this.locale,
this.softWrap,
this.semanticsLabel,
this.semanticsIdentifier,
this.textWidthBasis,
this.textHeightBehavior,
this.selectionColor,
}) : _style = style ?? const TextStyle(),
_align = align,
_maxLines = maxLines,
_overflow = overflow,
_textScaler = textScaler;