onWillPop method

Future<bool> onWillPop ()

Implementation

Future<bool> onWillPop() {
  bool shouldPop;
  if (activated) {
    onCancelSearch();
    shouldPop = false;
  } else {
    shouldPop = true;
  }
  return Future.value(shouldPop);
}