ResponsiveText constructor
const
ResponsiveText({
- Key? key,
- required String text,
- required ResponsiveTextStyle style,
- TextAlign textAlign = TextAlign.left,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- TextScaler? textScaler,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- 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,
TextScaler? textScaler,
int? maxLines,
String? semanticsLabel,
TextWidthBasis? textWidthBasis,
TextHeightBehavior? textHeightBehavior,
Color? selectionColor,
}) : _text = text,
_style = style,
_textAlign = textAlign,
_textDirection = textDirection,
_locale = locale,
_softWrap = softWrap,
_overflow = overflow,
_textScaler = textScaler,
_maxLines = maxLines,
_semanticsLabel = semanticsLabel,
_textWidthBasis = textWidthBasis,
_textHeightBehavior = textHeightBehavior,
_selectionColor = selectionColor;