copyWith method

FontConfig copyWith({
  1. String? sans,
  2. String? heading,
  3. String? mono,
})

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,
  );
}