copyWith method

TypographyScheme copyWith({
  1. List<String>? fontFamily,
  2. Dim? fontSizeSm,
  3. Dim? fontSizeMd,
  4. Dim? fontSizeLg,
  5. Dim? fontSizeXl,
  6. Dim? fontSize2xl,
  7. Dim? fontSize3xl,
  8. Dim? fontSize4xl,
  9. Dim? fontSize5xl,
  10. Dim? fontSizeError,
  11. Dim? fontSizeHint,
  12. Dim? fontSizeLabel,
  13. Dim? fontSizeSectionHeader,
  14. int? fontWeightNormal,
  15. int? fontWeightMedium,
  16. int? fontWeightSemiBold,
  17. int? fontWeightBold,
  18. int? fontWeightSectionHeader,
})

Implementation

TypographyScheme copyWith({
  List<String>? fontFamily,
  Dim? fontSizeSm,
  Dim? fontSizeMd,
  Dim? fontSizeLg,
  Dim? fontSizeXl,
  Dim? fontSize2xl,
  Dim? fontSize3xl,
  Dim? fontSize4xl,
  Dim? fontSize5xl,
  Dim? fontSizeError,
  Dim? fontSizeHint,
  Dim? fontSizeLabel,
  Dim? fontSizeSectionHeader,
  int? fontWeightNormal,
  int? fontWeightMedium,
  int? fontWeightSemiBold,
  int? fontWeightBold,
  int? fontWeightSectionHeader,
}) {
  return TypographyScheme(
    fontFamily: fontFamily ?? this.fontFamily,
    fontSizeSm: fontSizeSm ?? this.fontSizeSm,
    fontSizeMd: fontSizeMd ?? this.fontSizeMd,
    fontSizeLg: fontSizeLg ?? this.fontSizeLg,
    fontSizeXl: fontSizeXl ?? this.fontSizeXl,
    fontSize2xl: fontSize2xl ?? this.fontSize2xl,
    fontSize3xl: fontSize3xl ?? this.fontSize3xl,
    fontSize4xl: fontSize4xl ?? this.fontSize4xl,
    fontSize5xl: fontSize5xl ?? this.fontSize5xl,
    fontSizeError: fontSizeError ?? this.fontSizeError,
    fontSizeHint: fontSizeHint ?? this.fontSizeHint,
    fontSizeLabel: fontSizeLabel ?? this.fontSizeLabel,
    fontSizeSectionHeader:
        fontSizeSectionHeader ?? this.fontSizeSectionHeader,
    fontWeightNormal: fontWeightNormal ?? this.fontWeightNormal,
    fontWeightMedium: fontWeightMedium ?? this.fontWeightMedium,
    fontWeightSemiBold: fontWeightSemiBold ?? this.fontWeightSemiBold,
    fontWeightBold: fontWeightBold ?? this.fontWeightBold,
    fontWeightSectionHeader:
        fontWeightSectionHeader ?? this.fontWeightSectionHeader,
  );
}