copyWith method

SmartLoadingParams copyWith({
  1. Icon? icon,
  2. Color? backgroundColor,
})

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,
  );
}