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