copyWith method
- TextStyle? bodyLight1,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
TypographyExtension copyWith({TextStyle? bodyLight1}) {
return TypographyExtension(
headingBold: headingBold,
headingLight: headingLight,
headingBold1: headingBold1,
headingLight1: headingLight1,
headingBold2: headingBold2,
headingLight2: headingLight2,
titleBold: titleBold,
titleLight: titleLight,
bodyBold1: bodyBold1,
bodyLight1: bodyLight1,
bodyBold2: bodyBold2,
bodyLight2: bodyLight2,
captionBold: captionBold,
captionLight: captionLight,
tinyBold: tinyBold,
);
}