Back to Flutter Boost

dispatchPageShowEvent method

doc/api/page_visibility/PageVisibilityBinding/dispatchPageShowEvent.html

5.0.2626 B
Original Source

dispatchPageShowEvent method

voiddispatchPageShowEvent(

  1. Route route

)

Implementation

void dispatchPageShowEvent(Route<dynamic> route) {
  if (route == null) {
    return;
  }

  final observers = _listeners[route]?.toList();
  if (observers != null) {
    for (var observer in observers) {
      try {
        observer.onPageShow();
      } on Exception catch (e) {
        Logger.log(e.toString());
      }
    }
  }
  Logger.log(
      'page_visibility, #dispatchPageShowEvent, ${route.settings.name}');

  dispatchGlobalPageShowEvent(route);
}