pushBackHandler method

VoidCallback pushBackHandler(
  1. VoidCallback handler
)

Makes Android's back button call handler until the returned callback is called; used by the panel's nested views.

Implementation

VoidCallback pushBackHandler(VoidCallback handler) {
  _backHandlers.add(handler);
  return () => _backHandlers.remove(handler);
}