copyWith method

  1. @override
SafaehStatusColors copyWith({
  1. Color? success,
  2. Color? onSuccess,
  3. Color? warning,
  4. Color? onWarning,
  5. Color? danger,
  6. Color? onDanger,
})

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
SafaehStatusColors copyWith({
  Color? success,
  Color? onSuccess,
  Color? warning,
  Color? onWarning,
  Color? danger,
  Color? onDanger,
}) => SafaehStatusColors(
  success: success ?? this.success,
  onSuccess: onSuccess ?? this.onSuccess,
  warning: warning ?? this.warning,
  onWarning: onWarning ?? this.onWarning,
  danger: danger ?? this.danger,
  onDanger: onDanger ?? this.onDanger,
);