copyWith method
KiteTypography
copyWith({
- TextStyle? display,
- TextStyle? h1,
- TextStyle? h2,
- TextStyle? h3,
- TextStyle? title,
- TextStyle? bodyLarge,
- TextStyle? body,
- TextStyle? bodySmall,
- TextStyle? label,
- TextStyle? labelSmall,
- TextStyle? caption,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
KiteTypography copyWith({
TextStyle? display,
TextStyle? h1,
TextStyle? h2,
TextStyle? h3,
TextStyle? title,
TextStyle? bodyLarge,
TextStyle? body,
TextStyle? bodySmall,
TextStyle? label,
TextStyle? labelSmall,
TextStyle? caption,
}) {
return KiteTypography(
display: display ?? this.display,
h1: h1 ?? this.h1,
h2: h2 ?? this.h2,
h3: h3 ?? this.h3,
title: title ?? this.title,
bodyLarge: bodyLarge ?? this.bodyLarge,
body: body ?? this.body,
bodySmall: bodySmall ?? this.bodySmall,
label: label ?? this.label,
labelSmall: labelSmall ?? this.labelSmall,
caption: caption ?? this.caption,
);
}