copyWith method
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,
);