bodyText2 method
Text
bodyText2({
- Color? color,
- FontWeight? fontWeight,
- double? fontSize,
- String? fontFamily,
- double? letterSpacing,
- double? height,
- double? wordSpacing,
- TextOverflow? overflow,
- TextBaseline? textBaseline,
- List<
Shadow> ? shadows, - Paint? background,
- Color? backgroundColor,
- String? debugLabel,
- TextDecoration? decoration,
- Color? decorationColor,
- TextDecorationStyle? decorationStyle,
- double? decorationThickness,
- List<
String> ? fontFamilyFallback, - List<
FontFeature> ? fontFeatures, - FontStyle? fontStyle,
- Paint? foreground,
- bool? inherit,
- TextLeadingDistribution? leadingDistribution,
- Locale? locale,
- String? package,
Implementation
Text bodyText2({
final Color? color,
final FontWeight? fontWeight,
final double? fontSize,
final String? fontFamily,
final double? letterSpacing,
final double? height,
final double? wordSpacing,
final TextOverflow? overflow,
final TextBaseline? textBaseline,
final List<Shadow>? shadows,
final Paint? background,
final Color? backgroundColor,
final String? debugLabel,
final TextDecoration? decoration,
final Color? decorationColor,
final TextDecorationStyle? decorationStyle,
final double? decorationThickness,
final List<String>? fontFamilyFallback,
final List<FontFeature>? fontFeatures,
final FontStyle? fontStyle,
final Paint? foreground,
final bool? inherit,
final TextLeadingDistribution? leadingDistribution,
final Locale? locale,
final String? package,
}) =>
Text(
data ?? "",
textAlign: textAlign,
textDirection: textDirection,
maxLines: maxLines,
key: key,
locale: locale,
overflow: overflow,
semanticsLabel: semanticsLabel,
softWrap: softWrap,
strutStyle: strutStyle,
textHeightBehavior: textHeightBehavior,
textScaleFactor: textScaleFactor,
textWidthBasis: textWidthBasis,
style: context.textTheme.bodyText2!.copyWith(
package: package,
locale: locale,
leadingDistribution: leadingDistribution,
inherit: inherit,
foreground: foreground,
fontStyle: fontStyle,
fontFeatures: fontFeatures,
fontFamilyFallback: fontFamilyFallback,
decorationThickness: decorationThickness,
decorationColor: decorationColor,
decorationStyle: decorationStyle,
decoration: decoration,
debugLabel: debugLabel,
backgroundColor: backgroundColor,
background: background,
color: color,
fontWeight: fontWeight,
fontSize: fontSize,
fontFamily: fontFamily,
letterSpacing: letterSpacing,
height: height,
wordSpacing: wordSpacing,
overflow: overflow,
textBaseline: textBaseline,
shadows: shadows,
),
);