exit static method
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);
}