handleBackPress method

bool handleBackPress()

Calls the newest back handler, if any, and returns whether one ran.

Implementation

bool handleBackPress() {
  if (_backHandlers.isEmpty) return false;
  _backHandlers.last();
  return true;
}