onBackPressed method

bool onBackPressed(
  1. BackPressHandler handler
)

Implementation

bool onBackPressed(BackPressHandler handler) {
  var module = _engineContext?.moduleManager
      .getNativeModule<DeviceEventModule>(DeviceEventModule.kDeviceModuleName);
  if (module != null) {
    return module.onBackPressed(handler);
  }
  return false;
}