copyWith method

GitDiffThemeData copyWith({
  1. Color? addedBackground,
  2. Color? addedForeground,
  3. Color? removedBackground,
  4. Color? removedForeground,
  5. Color? contextForeground,
  6. Color? headerForeground,
})

Copy with selective overrides.

Implementation

GitDiffThemeData copyWith({
  Color? addedBackground,
  Color? addedForeground,
  Color? removedBackground,
  Color? removedForeground,
  Color? contextForeground,
  Color? headerForeground,
}) {
  return GitDiffThemeData(
    addedBackground: addedBackground ?? this.addedBackground,
    addedForeground: addedForeground ?? this.addedForeground,
    removedBackground: removedBackground ?? this.removedBackground,
    removedForeground: removedForeground ?? this.removedForeground,
    contextForeground: contextForeground ?? this.contextForeground,
    headerForeground: headerForeground ?? this.headerForeground,
  );
}