copyWith method
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,
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,
);
}