copyWith method
Create a copy with some fields replaced.
Implementation
FontConfig copyWith({
String? sans,
String? heading,
String? mono,
}) {
return FontConfig(
sans: sans ?? this.sans,
heading: heading ?? this.heading,
mono: mono ?? this.mono,
);
}