copyWith method

CarpenterOverlayTheme copyWith({
  1. Color? background,
  2. Color? foreground,
  3. Color? supporting,
  4. Color? border,
  5. Color? hovered,
  6. Color? selected,
  7. Color? scrim,
  8. Color? tooltipBackground,
  9. Color? tooltipForeground,
})

Returns the overlay theme with only the supplied semantic overlay colors replaced.

Implementation

CarpenterOverlayTheme copyWith({
  Color? background,
  Color? foreground,
  Color? supporting,
  Color? border,
  Color? hovered,
  Color? selected,
  Color? scrim,
  Color? tooltipBackground,
  Color? tooltipForeground,
}) => CarpenterOverlayTheme(
  background: background ?? this.background,
  foreground: foreground ?? this.foreground,
  supporting: supporting ?? this.supporting,
  border: border ?? this.border,
  hovered: hovered ?? this.hovered,
  selected: selected ?? this.selected,
  scrim: scrim ?? this.scrim,
  tooltipBackground: tooltipBackground ?? this.tooltipBackground,
  tooltipForeground: tooltipForeground ?? this.tooltipForeground,
);