returnAndPush method

void returnAndPush(
  1. dynamic value
)

This is custom method to pass returning value while popping the page. It can be considered as an example

Implementation

void returnAndPush(dynamic value) {
  _pages.removeLast();
  _uris.removeLast();
  _boolResultCompleter.complete(value);
  notifyListeners();
}