of static method
Text
of(
- Text? text, {
- Key? key,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
Convert a Text object to one with a translation.
Implementation
static Text of(
Text? text, {
Key? key,
TextStyle? style,
StrutStyle? strutStyle,
TextAlign? textAlign,
TextDirection? textDirection,
Locale? locale,
bool? softWrap,
TextOverflow? overflow,
double? textScaleFactor,
int? maxLines,
String? semanticsLabel,
TextWidthBasis? textWidthBasis,
}) =>
t(
text?.data,
key: key ?? text?.key,
style: style ?? text?.style,
strutStyle: strutStyle ?? text?.strutStyle,
textAlign: textAlign ?? text?.textAlign,
textDirection: textDirection ?? text?.textDirection,
locale: locale ?? text?.locale,
softWrap: softWrap ?? text?.softWrap,
overflow: overflow ?? text?.overflow,
textScaleFactor: textScaleFactor ?? text?.textScaleFactor,
maxLines: maxLines ?? text?.maxLines,
semanticsLabel: semanticsLabel ?? text?.semanticsLabel,
textWidthBasis: textWidthBasis ?? text?.textWidthBasis,
);