DidRemovePageCallback typedef
Signature for the Navigator.onDidRemovePage callback.
This must properly update the pages list the next time it is passed into
Navigator.pages so that it no longer includes the input page
.
(Otherwise, the page will be interpreted as a new page to show when the
Navigator.pages list is next updated.)
Implementation
typedef DidRemovePageCallback = void Function(Page<Object?> page);