call method
T
call({
- String? fontFamily,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- double? fontSize,
- double? letterSpacing,
- double? wordSpacing,
- TextBaseline? textBaseline,
- List<
Shadow> ? shadows, - Color? color,
- Color? backgroundColor,
- List<
FontVariation> ? fontVariations, - List<
FontFeature> ? fontFeatures, - TextDecoration? decoration,
- TextDecorationStyle? decorationStyle,
- Locale? locale,
- String? debugLabel,
- List<
String> ? fontFamilyFallback, - Paint? foreground,
- Paint? background,
- double? decorationThickness,
- Color? decorationColor,
- double? height,
Implementation
T call({
String? fontFamily,
FontWeight? fontWeight,
FontStyle? fontStyle,
double? fontSize,
double? letterSpacing,
double? wordSpacing,
TextBaseline? textBaseline,
List<Shadow>? shadows,
Color? color,
Color? backgroundColor,
List<FontVariation>? fontVariations,
List<FontFeature>? fontFeatures,
TextDecoration? decoration,
TextDecorationStyle? decorationStyle,
Locale? locale,
String? debugLabel,
List<String>? fontFamilyFallback,
Paint? foreground,
Paint? background,
double? decorationThickness,
Color? decorationColor,
double? height,
}) {
return only(
color: color?.toDto(),
fontWeight: fontWeight,
fontStyle: fontStyle,
decoration: decoration,
fontSize: fontSize,
letterSpacing: letterSpacing,
wordSpacing: wordSpacing,
backgroundColor: backgroundColor?.toDto(),
decorationColor: decorationColor?.toDto(),
decorationStyle: decorationStyle,
textBaseline: textBaseline,
fontVariations: fontVariations,
shadows: shadows?.map((e) => e.toDto()).toList(),
fontFeatures: fontFeatures,
foreground: foreground,
background: background,
decorationThickness: decorationThickness,
fontFamilyFallback: fontFamilyFallback,
locale: locale,
debugLabel: debugLabel,
height: height,
fontFamily: fontFamily,
);
}