emitOnResponse method

  1. @override
void emitOnResponse(
  1. FeedbackRepoUpdateResponse response
)

Implementation

@override
void emitOnResponse(FeedbackRepoUpdateResponse response) {
  if (response.taskDone) {
    emit(const UpdateSucceededState());
  } else {
    emit(const UpdateFailedState());
  }
}