onReady method

  1. @override
void onReady()
override

Called 1 frame after onInit(). It is the perfect place to enter navigation events, like snackbar, dialogs, or a new route, or async request.

Implementation

@override
void onReady() {
  super.onReady();
  _call.value.enumerateDevices();
  _stateWorker = ever(_call.value.state, (state) {
    if (state == OngoingCallState.ended) {
      pop();
    }
  });
}