TextStyleDto.only constructor

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

Implementation

factory TextStyleDto.only({
  ColorDto? color,
  ColorDto? backgroundColor,
  double? fontSize,
  FontWeight? fontWeight,
  FontStyle? fontStyle,
  double? letterSpacing,
  String? debugLabel,
  double? wordSpacing,
  TextBaseline? textBaseline,
  List<ShadowDto>? shadows,
  List<FontFeature>? fontFeatures,
  TextDecoration? decoration,
  ColorDto? decorationColor,
  TextDecorationStyle? decorationStyle,
  Locale? locale,
  double? height,
  Paint? foreground,
  Paint? background,
  double? decorationThickness,
  String? fontFamily,
  List<String>? fontFamilyFallback,
}) {
  return 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,
  ));
}