only method

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