didPopRoute method

  1. @override
  2. @mustCallSuper
Future<bool> didPopRoute()
inherited

Called when the system tells the app to pop the current route, such as after a system back button press or back gesture.

Implementation

@override
@mustCallSuper
Future<bool> didPopRoute() async {
  final pop = super.didPopRoute();
  // Loop through all the StateX objects
  final list = statesList(reversed: true, remove: this);
  for (final StateX state in list) {
    await state.didPopRoute();
    // final popped = await state.didPopRoute();
    // if (popped) {
    //   break;
    // }
  }
  return pop;
}