copyWith method

ZeroTypography copyWith({
  1. TextStyle? heading1,
  2. TextStyle? heading2,
  3. TextStyle? heading3,
  4. TextStyle? heading4,
  5. TextStyle? heading5,
  6. TextStyle? heading6,
  7. TextStyle? subtitle1,
  8. TextStyle? subtitle2,
  9. TextStyle? body1,
  10. TextStyle? body2,
  11. TextStyle? button,
  12. TextStyle? caption,
  13. TextStyle? overline,
})

Implementation

ZeroTypography copyWith({
  TextStyle? heading1,
  TextStyle? heading2,
  TextStyle? heading3,
  TextStyle? heading4,
  TextStyle? heading5,
  TextStyle? heading6,
  TextStyle? subtitle1,
  TextStyle? subtitle2,
  TextStyle? body1,
  TextStyle? body2,
  TextStyle? button,
  TextStyle? caption,
  TextStyle? overline,
}) {
  return ZeroTypography.raw(
    heading1: heading1 ?? this.heading1,
    heading2: heading2 ?? this.heading2,
    heading3: heading3 ?? this.heading3,
    heading4: heading4 ?? this.heading4,
    heading5: heading5 ?? this.heading5,
    heading6: heading6 ?? this.heading6,
    subtitle1: subtitle1 ?? this.subtitle1,
    subtitle2: subtitle2 ?? this.subtitle2,
    body1: body1 ?? this.body1,
    body2: body2 ?? this.body2,
    button: button ?? this.button,
    caption: caption ?? this.caption,
    overline: overline ?? this.overline,
  );
}