VText constructor

const VText(
  1. String? data, {
  2. TextStyle? style,
  3. TextAlign? align,
  4. int? maxLines,
  5. TextOverflow? overflow,
  6. TextScaler? textScaler,
  7. StrutStyle? strutStyle,
  8. TextDirection? textDirection,
  9. Locale? locale,
  10. bool? softWrap,
  11. String? semanticsLabel,
  12. String? semanticsIdentifier,
  13. TextWidthBasis? textWidthBasis,
  14. TextHeightBehavior? textHeightBehavior,
  15. 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;