MyText constructor

MyText(
  1. String? data, {
  2. Key? key,
  3. TextStyle? style,
  4. TextAlign? textAlign,
  5. TextDirection? textDirection,
  6. TextOverflow? overflow,
  7. bool? softWrap,
  8. Locale? locale,
  9. int? maxLines,
  10. String? semanticsLabel,
  11. TextWidthBasis? textWidthBasis,
  12. TextHeightBehavior? textHeightBehavior,
  13. Color? color,
  14. double? fontSize,
  15. FontWeight? fontWeight,
  16. FontStyle? fontStyle,
  17. double? height,
  18. double? letterSpacing,
  19. double? wordSpacing,
  20. TextBaseline? textBaseline,
  21. TextLeadingDistribution? leadingDistribution,
  22. Paint? foreground,
  23. Paint? background,
  24. List<Shadow>? shadows,
  25. List<FontFeature>? fontFeatures,
  26. TextDecoration? decoration,
  27. Color? decorationColor,
  28. TextDecorationStyle? decorationStyle,
  29. double? decorationThickness,
})

Creates a customized Text widget using the default body text style from the theme. This is the default constructor.

Implementation

factory MyText(
  String? data, {
  Key? key,
  TextStyle? style,
  TextAlign? textAlign,
  TextDirection? textDirection,
  TextOverflow? overflow,
  bool? softWrap,
  Locale? locale,
  int? maxLines,
  String? semanticsLabel,
  TextWidthBasis? textWidthBasis,
  TextHeightBehavior? textHeightBehavior,
  Color? color,
  double? fontSize,
  FontWeight? fontWeight,
  FontStyle? fontStyle,
  double? height,
  double? letterSpacing,
  double? wordSpacing,
  TextBaseline? textBaseline,
  TextLeadingDistribution? leadingDistribution,
  Paint? foreground,
  Paint? background,
  List<Shadow>? shadows,
  List<FontFeature>? fontFeatures,
  TextDecoration? decoration,
  Color? decorationColor,
  TextDecorationStyle? decorationStyle,
  double? decorationThickness,
}) =>
    MyText._(
      data,
      null,
      key: key,
      style: style,
      textAlign: textAlign,
      textDirection: textDirection,
      overflow: overflow,
      softWrap: softWrap,
      locale: locale,
      maxLines: maxLines,
      semanticsLabel: semanticsLabel,
      textWidthBasis: textWidthBasis,
      textHeightBehavior: textHeightBehavior,
      color: color,
      fontSize: fontSize,
      fontWeight: fontWeight,
      fontStyle: fontStyle,
      height: height,
      letterSpacing: letterSpacing,
      wordSpacing: wordSpacing,
      textBaseline: textBaseline,
      leadingDistribution: leadingDistribution,
      foreground: foreground,
      background: background,
      shadows: shadows,
      fontFeatures: fontFeatures,
      decoration: decoration,
      decorationColor: decorationColor,
      decorationStyle: decorationStyle,
      decorationThickness: decorationThickness,
    );