copyWith method
Creates a new instance with updated values.
Returns a new SmartLoadingParams with the updated fields.
Implementation
SmartLoadingParams copyWith({Icon? icon, Color? backgroundColor}) {
return SmartLoadingParams(
icon: icon ?? this.icon,
backgroundColor: backgroundColor ?? this.backgroundColor,
);
}