text method
Text
text(
{ - String defaultValue = '',
- TextStyle? style,
- int? maxLines,
- TextOverflow overflow = TextOverflow.ellipsis,
- TextAlign? textAlign,
- bool? softWrap,
- Locale? locale,
- Key? key,
- String? semanticsLabel,
- StrutStyle? strutStyle,
- double? textScaleFactor,
- TextWidthBasis? textWidthBasis,
})
Implementation
@Deprecated('Use Flutter Text widget instead')
Text text({
String defaultValue = '',
TextStyle? style,
int? maxLines,
TextOverflow overflow = TextOverflow.ellipsis,
TextAlign? textAlign,
bool? softWrap,
Locale? locale,
Key? key,
String? semanticsLabel,
StrutStyle? strutStyle,
double? textScaleFactor,
TextWidthBasis? textWidthBasis,
}) {
return Text(
validate(value: defaultValue),
style: style,
maxLines: maxLines,
overflow: overflow,
textAlign: textAlign,
softWrap: softWrap,
locale: locale,
key: key,
semanticsLabel: semanticsLabel,
strutStyle: strutStyle,
textScaleFactor: textScaleFactor,
textWidthBasis: textWidthBasis,
);
}