CustomText.bodyText1 constructor

CustomText.bodyText1(
  1. String text, {
  2. Key? key,
  3. StrutStyle? strutStyle,
  4. String? semanticsLabel,
  5. String? semanticsIdentifier,
  6. TextWidthBasis? textWidthBasis = TextWidthBasis.parent,
  7. TextScaler? textScaler = const TextScaler.linear(1.2),
  8. bool? softWrap = true,
  9. TextHeightBehavior? textHeightBehavior = const TextHeightBehavior(applyHeightToFirstAscent: false, applyHeightToLastDescent: false),
  10. Color? selectionColor = Colors.yellow,
  11. TextStyle? style,
  12. double? fontSize,
  13. double increamentFontSize = 0,
  14. FontStyle? fontStyle,
  15. FontWeight? fontWeight,
  16. String? fontFamily,
  17. Color? color,
  18. Color? backgroundColor,
  19. double? height,
  20. int? maxLines,
  21. TextOverflow? overflow,
  22. TextDirection? textDirection,
  23. TextAlign? textAlign,
  24. TextDecoration? decoration,
  25. double? decorationThickness,
  26. TextDecorationStyle? decorationStyle,
  27. Paint? backgroundPaint,
  28. Paint? foregroundPaint,
  29. String? debugLabel,
  30. bool? inherit,
  31. List<String>? fontFamilyFallback,
  32. List<FontFeature>? fontFeatures,
  33. List<FontVariation>? fontVariations,
  34. TextLeadingDistribution? leadingDistribution,
  35. double? letterSpacing,
  36. Locale? locale,
  37. String? package,
  38. List<Shadow>? shadows,
  39. TextBaseline? textBaseline,
  40. double? wordSpacing,
})

this is the constructor of body text 1

Implementation

CustomText.bodyText1(
  this.text, {
  super.key,
  this.strutStyle,
  this.semanticsLabel,
  this.semanticsIdentifier,
  this.textWidthBasis = TextWidthBasis.parent,
  this.textScaler = const TextScaler.linear(1.2),
  this.softWrap = true,
  this.textHeightBehavior = const TextHeightBehavior(
    applyHeightToFirstAscent: false,
    applyHeightToLastDescent: false,
  ),
  this.selectionColor = Colors.yellow,
  // this.style = CustomTextStyle.bodyText1,
  TextStyle? style,
  this.fontSize,
  this.increamentFontSize = 0,
  this.fontStyle,
  this.fontWeight,
  this.fontFamily,
  this.color,
  this.backgroundColor,
  this.height,
  this.maxLines,
  this.overflow,
  this.textDirection,
  this.textAlign,
  this.decoration,
  this.decorationThickness,
  this.decorationStyle,
  this.backgroundPaint,
  this.foregroundPaint,
  this.debugLabel,
  this.inherit,
  this.fontFamilyFallback,
  this.fontFeatures,
  this.fontVariations,
  this.leadingDistribution,
  this.letterSpacing,
  this.locale,
  this.package,
  this.shadows,
  this.textBaseline,
  this.wordSpacing,
}) : style = style ?? CustomTextStyle.bodyText1;