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