copyWith method

JsonColorScheme copyWith({
  1. Color? nullColor,
  2. Color? boolColor,
  3. Color? numColor,
  4. Color? stringColor,
  5. Color? normalColor,
  6. Color? markColor,
  7. Color? nullBackground,
})

copy colors from another scheme

Implementation

JsonColorScheme copyWith({
  Color? nullColor,
  Color? boolColor,
  Color? numColor,
  Color? stringColor,
  Color? normalColor,
  Color? markColor,
  Color? nullBackground,
}) {
  return JsonColorScheme(
    nullColor: nullColor ?? this.nullColor,
    boolColor: boolColor ?? this.boolColor,
    numColor: numColor ?? this.numColor,
    stringColor: stringColor ?? this.stringColor,
    normalColor: normalColor ?? this.normalColor,
    markColor: markColor ?? this.markColor,
    nullBackground: nullBackground ?? this.nullBackground,
  );
}