returnAndPush method
void
returnAndPush(
- 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) {
if (_boolResultCompleter != null) {
_pages.removeLast();
_uris.removeLast();
if (_uris.length == 1) {
_boolResultCompleter!.complete(value);
}
notifyListeners();
}
}