styledText method
StyledText
styledText(
- TextStyle style, {
- Key? key,
- TextAlign? align,
- int? maxLines,
- TextOverflow? overflow,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- StrutStyle? strutStyle,
Wraps the string in a StyledText widget with the given style.
Implementation
StyledText styledText(
TextStyle style, {
Key? key,
TextAlign? align,
int? maxLines,
TextOverflow? overflow,
TextDirection? textDirection,
Locale? locale,
bool? softWrap,
StrutStyle? strutStyle,
}) {
return StyledText(
this,
style,
key: key,
align: align,
maxLines: maxLines,
overflow: overflow,
textDirection: textDirection,
locale: locale,
softWrap: softWrap,
strutStyle: strutStyle,
);
}