PlatformText constructor
PlatformText(
- String data, {
- Key? key,
- TextStyle? style,
- TextAlign? textAlign,
- TextDirection? textDirection,
- bool? softWrap,
- TextOverflow? overflow,
- @Deprecated('Use textScaler instead. ' 'This feature was removed after version 3.16') double? textScaleFactor,
- TextScaler? textScaler,
- 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,
@Deprecated(
'Use textScaler instead. '
'This feature was removed after version 3.16',
)
double? textScaleFactor,
TextScaler? textScaler,
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,
textScaler: textScaler,
maxLines: maxLines,
locale: locale,
semanticsLabel: semanticsLabel,
strutStyle: strutStyle,
textWidthBasis: textWidthBasis,
textHeightBehavior: textHeightBehavior,
selectionColor: selectionColor,
//deprecated textScaleFactor: textScaleFactor,
));
}