copyWith method
PlexThemeData
copyWith({
- PlexColorTokens? colors,
- String? fontFamily,
- PlexDensity? density,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
PlexThemeData copyWith({
PlexColorTokens? colors,
String? fontFamily,
PlexDensity? density,
}) {
return PlexThemeData(
colors: colors ?? this.colors,
fontFamily: fontFamily ?? this.fontFamily,
density: density ?? this.density,
);
}