call method

T call({
  1. String? fontFamily,
  2. FontWeight? fontWeight,
  3. FontStyle? fontStyle,
  4. double? fontSize,
  5. double? letterSpacing,
  6. double? wordSpacing,
  7. TextBaseline? textBaseline,
  8. List<Shadow>? shadows,
  9. Color? color,
  10. Color? backgroundColor,
  11. List<FontVariation>? fontVariations,
  12. List<FontFeature>? fontFeatures,
  13. TextDecoration? decoration,
  14. TextDecorationStyle? decorationStyle,
  15. Locale? locale,
  16. String? debugLabel,
  17. List<String>? fontFamilyFallback,
  18. Paint? foreground,
  19. Paint? background,
  20. double? decorationThickness,
  21. Color? decorationColor,
  22. 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,
  );
}