registerPopEntry method

void registerPopEntry(
  1. PopEntry popEntry
)

Registers the existence of a PopEntry in the route.

PopEntry instances registered in this way will have their PopEntry.onPopInvoked callbacks called when a route is popped or a pop is attempted. They will also be able to block pop operations with PopEntry.canPopNotifier through this route's popDisposition method.

See also:

Implementation

void registerPopEntry(PopEntry popEntry) {
  _popEntries.add(popEntry);
  popEntry.canPopNotifier.addListener(_handlePopEntryChange);
  _handlePopEntryChange();
}