/// Created by Capt. Michael @ CaptNotes.com on 02/17/2020.
class Singleton {
Singleton._();
static final _instance = Singleton._();
factory Singleton.getInstance() => _instance;
}
Dart单例模式最佳实践
猜你喜欢
转载自www.cnblogs.com/Autumoon/p/12327422.html
今日推荐
周排行