copyWith method

Typography copyWith({
  1. TextStyle? sans,
  2. TextStyle? mono,
  3. TextStyle? xSmall,
  4. TextStyle? small,
  5. TextStyle? base,
  6. TextStyle? large,
  7. TextStyle? xLarge,
  8. TextStyle? x2Large,
  9. TextStyle? x3Large,
  10. TextStyle? x4Large,
  11. TextStyle? x5Large,
  12. TextStyle? x6Large,
  13. TextStyle? x7Large,
  14. TextStyle? x8Large,
  15. TextStyle? x9Large,
  16. TextStyle? thin,
  17. TextStyle? light,
  18. TextStyle? extraLight,
  19. TextStyle? normal,
  20. TextStyle? medium,
  21. TextStyle? semiBold,
  22. TextStyle? bold,
  23. TextStyle? extraBold,
  24. TextStyle? black,
  25. TextStyle? italic,
  26. TextStyle? h1,
  27. TextStyle? h2,
  28. TextStyle? h3,
  29. TextStyle? h4,
  30. TextStyle? p,
  31. TextStyle? blockQuote,
  32. TextStyle? inlineCode,
  33. TextStyle? lead,
  34. TextStyle? textLarge,
  35. TextStyle? textSmall,
  36. TextStyle? textMuted,
})

Implementation

Typography copyWith({
  TextStyle? sans,
  TextStyle? mono,
  TextStyle? xSmall,
  TextStyle? small,
  TextStyle? base,
  TextStyle? large,
  TextStyle? xLarge,
  TextStyle? x2Large,
  TextStyle? x3Large,
  TextStyle? x4Large,
  TextStyle? x5Large,
  TextStyle? x6Large,
  TextStyle? x7Large,
  TextStyle? x8Large,
  TextStyle? x9Large,
  TextStyle? thin,
  TextStyle? light,
  TextStyle? extraLight,
  TextStyle? normal,
  TextStyle? medium,
  TextStyle? semiBold,
  TextStyle? bold,
  TextStyle? extraBold,
  TextStyle? black,
  TextStyle? italic,
  TextStyle? h1,
  TextStyle? h2,
  TextStyle? h3,
  TextStyle? h4,
  TextStyle? p,
  TextStyle? blockQuote,
  TextStyle? inlineCode,
  TextStyle? lead,
  TextStyle? textLarge,
  TextStyle? textSmall,
  TextStyle? textMuted,
}) {
  return Typography(
    sans: sans ?? this.sans,
    mono: mono ?? this.mono,
    xSmall: xSmall ?? this.xSmall,
    small: small ?? this.small,
    base: base ?? this.base,
    large: large ?? this.large,
    xLarge: xLarge ?? this.xLarge,
    x2Large: x2Large ?? this.x2Large,
    x3Large: x3Large ?? this.x3Large,
    x4Large: x4Large ?? this.x4Large,
    x5Large: x5Large ?? this.x5Large,
    x6Large: x6Large ?? this.x6Large,
    x7Large: x7Large ?? this.x7Large,
    x8Large: x8Large ?? this.x8Large,
    x9Large: x9Large ?? this.x9Large,
    thin: thin ?? this.thin,
    light: light ?? this.light,
    extraLight: extraLight ?? this.extraLight,
    normal: normal ?? this.normal,
    medium: medium ?? this.medium,
    semiBold: semiBold ?? this.semiBold,
    bold: bold ?? this.bold,
    extraBold: extraBold ?? this.extraBold,
    black: black ?? this.black,
    italic: italic ?? this.italic,
    h1: h1 ?? this.h1,
    h2: h2 ?? this.h2,
    h3: h3 ?? this.h3,
    h4: h4 ?? this.h4,
    p: p ?? this.p,
    blockQuote: blockQuote ?? this.blockQuote,
    inlineCode: inlineCode ?? this.inlineCode,
    lead: lead ?? this.lead,
    textLarge: textLarge ?? this.textLarge,
    textSmall: textSmall ?? this.textSmall,
    textMuted: textMuted ?? this.textMuted,
  );
}