exit static method

Future<void> exit()

Closes the app on Android and desktop; iOS and web do not allow it (does nothing). UApp.exit()

Implementation

static Future<void> exit() async {
  if (isAndroid) return SystemNavigator.pop();
  if (isDesktop) await ServicesBinding.instance.exitApplication(AppExitType.required);
}