copyWith method
Implementation
SplashState copyWith({
bool? isLoading,
String? error,
bool clearError = false,
bool? isSuccess,
String? statusMessage,
}) =>
SplashState(
isLoading: isLoading ?? this.isLoading,
error: clearError ? null : (error ?? this.error),
isSuccess: isSuccess ?? this.isSuccess,
statusMessage: statusMessage ?? this.statusMessage,
);