ResponsiveText constructor

const ResponsiveText({
  1. Key? key,
  2. required String text,
  3. required ResponsiveTextStyle style,
  4. TextAlign textAlign = TextAlign.left,
  5. TextDirection? textDirection,
  6. Locale? locale,
  7. bool? softWrap,
  8. TextOverflow? overflow,
  9. double? textScaleFactor,
  10. int? maxLines,
  11. String? semanticsLabel,
  12. TextWidthBasis? textWidthBasis,
  13. TextHeightBehavior? textHeightBehavior,
  14. Color? selectionColor,
})

Creates a ResponsiveText widget.

Implementation

const ResponsiveText({
  super.key,
  required String text,
  required ResponsiveTextStyle style,
  TextAlign textAlign = TextAlign.left,
  TextDirection? textDirection,
  Locale? locale,
  bool? softWrap,
  TextOverflow? overflow,
  double? textScaleFactor,
  int? maxLines,
  String? semanticsLabel,
  TextWidthBasis? textWidthBasis,
  TextHeightBehavior? textHeightBehavior,
  Color? selectionColor,
})  : _text = text,
      _style = style,
      _textAlign = textAlign,
      _textDirection = textDirection,
      _locale = locale,
      _softWrap = softWrap,
      _overflow = overflow,
      _textScaleFactor = textScaleFactor,
      _maxLines = maxLines,
      _semanticsLabel = semanticsLabel,
      _textWidthBasis = textWidthBasis,
      _textHeightBehavior = textHeightBehavior,
      _selectionColor = selectionColor;