CustomText.bodyText2 constructor
CustomText.bodyText2(
- String text, {
- Key? key,
- TextStyle? style,
- double? fontSize,
- double increamentFontSize = 0,
- FontStyle? fontStyle,
- FontWeight? fontWeight,
- String? fontFamily,
- Color? color,
- Color? backgroundColor,
- double? height,
- int? maxLines,
- TextOverflow? overflow,
- TextDirection? textDirection,
- TextAlign? textAlign,
- TextDecoration? decoration,
- double? decorationThickness,
- TextDecorationStyle? decorationStyle,
- Paint? backgroundPaint,
- Paint? foregroundPaint,
- String? debugLabel,
- bool? inherit,
- List<
String> ? fontFamilyFallback, - List<
FontFeature> ? fontFeatures, - List<
FontVariation> ? fontVariations, - TextLeadingDistribution? leadingDistribution,
- double? letterSpacing,
- Locale? locale,
- String? package,
- List<
Shadow> ? shadows, - TextBaseline? textBaseline,
- double? wordSpacing,
this is the constructor of body text 2
Implementation
CustomText.bodyText2(
this.text, {
super.key,
TextStyle? style,
// this.style = CustomTextStyle.bodyText2,
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.bodyText2;