onBackPressed method

Future<bool> onBackPressed()

Implementation

Future<bool> onBackPressed() async {
  if (!((await globalKey.currentState?.onBackPressed()) ?? false)) {
    return false;
  }
  configuration.onCancel?.call();
  return true;
}