onWillPop method

Future<bool> onWillPop ()

Implementation

Future<bool> onWillPop() async {
  Navigator.pop(context, true);
  return true;
}