onBack method

Future onBack()

Implementation

Future onBack() {
  hideKeyboard();
  return Navigator.of(context).maybePop();
}