copyWith method

LoginState copyWith({
  1. bool? isLoading,
  2. String? error,
  3. bool? isSuccess,
})

Implementation

LoginState copyWith({bool? isLoading, String? error, bool? isSuccess}) =>
    LoginState(
      isLoading: isLoading ?? this.isLoading,
      error: error,
      isSuccess: isSuccess ?? this.isSuccess,
    );