exit static method

Future<void> exit()

静态方法用于退出应用

Implementation

static Future<void> exit() async {
  // 清理单实例管理器资源
  await SingleInstanceManager.instance.dispose();
  await exitApp();
}