setError method

void setError(
  1. String? error
)

Implementation

void setError(String? error) {
  emit(state.copyWith(error: error));
}