styledText method

StyledText styledText(
  1. TextStyle style, {
  2. Key? key,
  3. TextAlign? align,
  4. int? maxLines,
  5. TextOverflow? overflow,
  6. TextDirection? textDirection,
  7. Locale? locale,
  8. bool? softWrap,
  9. 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,
  );
}