install method

  1. @override
void install()
override

Called when the route is inserted into the navigator.

Uses this to populate overlayEntries. There must be at least one entry in this list after install has been invoked. The Navigator will be in charge to add them to the Overlay or remove them from it by calling OverlayEntry.remove.

Implementation

@override
void install() {
  assert(_overlayEntries.isEmpty);
  _overlayEntries.addAll(createOverlayEntries());
  super.install();
}