copyWith method
KiteTypography
copyWith({
- TextStyle? display,
- TextStyle? heading,
- TextStyle? section,
- TextStyle? title,
- TextStyle? lead,
- TextStyle? body,
- TextStyle? paragraph,
- 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? heading,
TextStyle? section,
TextStyle? title,
TextStyle? lead,
TextStyle? body,
TextStyle? paragraph,
TextStyle? label,
TextStyle? labelSmall,
TextStyle? caption,
}) {
return KiteTypography(
display: display ?? this.display,
heading: heading ?? this.heading,
section: section ?? this.section,
title: title ?? this.title,
lead: lead ?? this.lead,
body: body ?? this.body,
paragraph: paragraph ?? this.paragraph,
label: label ?? this.label,
labelSmall: labelSmall ?? this.labelSmall,
caption: caption ?? this.caption,
);
}