copyWith method

NomoColors copyWith({
  1. Brightness? brightness,
  2. Color? primary,
  3. Color? onPrimary,
  4. Color? primaryContainer,
  5. Color? secondary,
  6. Color? onSecondary,
  7. Color? secondaryContainer,
  8. Color? background1,
  9. Color? background2,
  10. Color? background3,
  11. Color? surface,
  12. Color? error,
  13. Color? disabled,
  14. Color? onDisabled,
  15. Color? foreground1,
  16. Color? foreground2,
  17. Color? foreground3,
})

Implementation

NomoColors copyWith({
  Brightness? brightness,
  Color? primary,
  Color? onPrimary,
  Color? primaryContainer,
  Color? secondary,
  Color? onSecondary,
  Color? secondaryContainer,
  Color? background1,
  Color? background2,
  Color? background3,
  Color? surface,
  Color? error,
  Color? disabled,
  Color? onDisabled,
  Color? foreground1,
  Color? foreground2,
  Color? foreground3,
}) {
  return NomoColors(
    brightness: brightness ?? this.brightness,
    primary: primary ?? this.primary,
    onPrimary: onPrimary ?? this.onPrimary,
    primaryContainer: primaryContainer ?? this.primaryContainer,
    secondary: secondary ?? this.secondary,
    onSecondary: onSecondary ?? this.onSecondary,
    secondaryContainer: secondaryContainer ?? this.secondaryContainer,
    background1: background1 ?? this.background1,
    background2: background2 ?? this.background2,
    background3: background3 ?? this.background3,
    surface: surface ?? this.surface,
    error: error ?? this.error,
    disabled: disabled ?? this.disabled,
    onDisabled: onDisabled ?? this.onDisabled,
    foreground1: foreground1 ?? this.foreground1,
    foreground2: foreground2 ?? this.foreground2,
    foreground3: foreground3 ?? this.foreground3,
  );
}