onDetach method

  1. @override
void onDetach()
override

Called during pop before the future is completed. Override for cleanup that must happen before the exit animation.

Implementation

@override
void onDetach() {
  _cancelRecording();
  super.onDetach();
}