clearAwaitingVerification method

Future<void> clearAwaitingVerification()

Clear verification state

Implementation

Future<void> clearAwaitingVerification() async {
  if (state.awaitingVerification != null) {
    emit(state.copyWith(
      resetAwaitingVerification: true,
    ));
    // wait for the state to be updated
    await stream.firstWhere(
      (state) => state.awaitingVerification == null,
    );
  }
}