PlatformText constructor

PlatformText(
  1. String data, {
  2. Key? key,
  3. TextStyle? style,
  4. TextAlign? textAlign,
  5. TextDirection? textDirection,
  6. bool? softWrap,
  7. TextOverflow? overflow,
  8. double? textScaleFactor,
  9. int? maxLines,
  10. Locale? locale,
  11. String? semanticsLabel,
  12. StrutStyle? strutStyle,
  13. TextWidthBasis? textWidthBasis,
  14. TextHeightBehavior? textHeightBehavior,
  15. Color? selectionColor,
})

Implementation

factory PlatformText(
  String data, {
  Key? key,
  TextStyle? style,
  TextAlign? textAlign,
  TextDirection? textDirection,
  bool? softWrap,
  TextOverflow? overflow,
  double? textScaleFactor,
  int? maxLines,
  Locale? locale,
  String? semanticsLabel,
  StrutStyle? strutStyle,
  TextWidthBasis? textWidthBasis,
  ui.TextHeightBehavior? textHeightBehavior,
  Color? selectionColor,
}) {
  return PlatformText._(
      key,
      (BuildContext context) => Text(
            formatData(context, data),
            key: key,
            style: style,
            textAlign: textAlign,
            textDirection: textDirection,
            softWrap: softWrap,
            overflow: overflow,
            textScaleFactor: textScaleFactor,
            maxLines: maxLines,
            locale: locale,
            semanticsLabel: semanticsLabel,
            strutStyle: strutStyle,
            textWidthBasis: textWidthBasis,
            textHeightBehavior: textHeightBehavior,
            selectionColor: selectionColor,
          ));
}