only method
T
only({
- ColorDto? color,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- TextDecoration? decoration,
- double? fontSize,
- double? letterSpacing,
- double? wordSpacing,
- ColorDto? backgroundColor,
- ColorDto? decorationColor,
- TextDecorationStyle? decorationStyle,
- TextBaseline? textBaseline,
- List<
ShadowDto> ? shadows, - List<
FontFeature> ? fontFeatures, - Paint? foreground,
- Paint? background,
- double? decorationThickness,
- List<
String> ? fontFamilyFallback, - Locale? locale,
- String? debugLabel,
- double? height,
- String? fontFamily,
override
Implementation
@override
T only({
ColorDto? color,
FontWeight? fontWeight,
FontStyle? fontStyle,
TextDecoration? decoration,
double? fontSize,
double? letterSpacing,
double? wordSpacing,
ColorDto? backgroundColor,
ColorDto? decorationColor,
TextDecorationStyle? decorationStyle,
TextBaseline? textBaseline,
List<ShadowDto>? shadows,
List<FontFeature>? fontFeatures,
Paint? foreground,
Paint? background,
double? decorationThickness,
List<String>? fontFamilyFallback,
Locale? locale,
String? debugLabel,
double? height,
String? fontFamily,
}) {
final textStyle = TextStyleDto(
TextStyleData(
background: background,
backgroundColor: backgroundColor,
color: color,
debugLabel: debugLabel,
decoration: decoration,
decorationColor: decorationColor,
decorationStyle: decorationStyle,
decorationThickness: decorationThickness,
fontFamily: fontFamily,
fontFamilyFallback: fontFamilyFallback,
fontFeatures: fontFeatures,
fontSize: fontSize,
fontStyle: fontStyle,
fontWeight: fontWeight,
foreground: foreground,
height: height,
letterSpacing: letterSpacing,
locale: locale,
shadows: shadows,
textBaseline: textBaseline,
wordSpacing: wordSpacing,
),
);
return builder(textStyle);
}