摘要: flutter中单例的写法 class AccountManager { factory AccountManager() => _instance ??= AccountManager._(); /// 销毁单例 static void destroyInstance() => _instance 阅读全文
posted @ 2023-03-05 22:52 西北野狼 阅读(57) 评论(0) 推荐(0) 编辑