PlatformText constructor
PlatformText(
- String data, {
- Key? key,
- TextStyle? style,
- TextAlign? textAlign,
- TextDirection? textDirection,
- bool? softWrap,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- Locale? locale,
- String? semanticsLabel,
- StrutStyle? strutStyle,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- Color? selectionColor,
Implementation
factory PlatformText(
String data, {
Key? key,
TextStyle? style,
TextAlign? textAlign,
TextDirection? textDirection,
bool? softWrap,
TextOverflow? overflow,
double? textScaleFactor,
int? maxLines,
Locale? locale,
String? semanticsLabel,
StrutStyle? strutStyle,
TextWidthBasis? textWidthBasis,
ui.TextHeightBehavior? textHeightBehavior,
Color? selectionColor,
}) {
return PlatformText._(
key,
(BuildContext context) => Text(
formatData(context, data),
key: key,
style: style,
textAlign: textAlign,
textDirection: textDirection,
softWrap: softWrap,
overflow: overflow,
textScaleFactor: textScaleFactor,
maxLines: maxLines,
locale: locale,
semanticsLabel: semanticsLabel,
strutStyle: strutStyle,
textWidthBasis: textWidthBasis,
textHeightBehavior: textHeightBehavior,
selectionColor: selectionColor,
));
}