copyWith method

Implementation

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