copyWith method

SplashState copyWith({
  1. bool? isLoading,
  2. String? error,
  3. bool clearError = false,
  4. bool? isSuccess,
  5. String? statusMessage,
})

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