text method

  1. @Deprecated('Use Flutter Text widget instead')
Text text({
  1. String defaultValue = '',
  2. TextStyle? style,
  3. int? maxLines,
  4. TextOverflow overflow = TextOverflow.ellipsis,
  5. TextAlign? textAlign,
  6. bool? softWrap,
  7. Locale? locale,
  8. Key? key,
  9. String? semanticsLabel,
  10. StrutStyle? strutStyle,
  11. double? textScaleFactor,
  12. 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,
  );
}