pop method

void pop([
  1. Object? result
])

Pops the top screen off the top of the stack.

The next screen down is activated. If result is given, it is passed to the new active screen's activate method.

Implementation

void pop([Object? result]) {
  var screen = _screens.removeLast();
  screen._unbind();
  _screens[_screens.length - 1].activate(screen, result);
  _render();
}