text method

Text text({
  1. Key? key,
  2. TextStyle? style,
  3. TextAlign? align,
  4. TextOverflow? overflow,
  5. int? maxLines,
  6. TextDirection? textDirection,
  7. Locale? locale,
  8. bool? softWrap,
  9. StrutStyle? strutStyle,
})

Wraps the string in a standard Text widget.

Implementation

Text text({
  Key? key,
  TextStyle? style,
  TextAlign? align,
  TextOverflow? overflow,
  int? maxLines,
  TextDirection? textDirection,
  Locale? locale,
  bool? softWrap,
  StrutStyle? strutStyle,
}) {
  return Text(
    this,
    key: key,
    style: style,
    textAlign: align,
    overflow: overflow,
    maxLines: maxLines,
    textDirection: textDirection,
    locale: locale,
    softWrap: softWrap,
    strutStyle: strutStyle,
  );
}