/// Created by Capt. Michael @ CaptNotes.com on 02/17/2020.
class Singleton {
Singleton._();
static final Singleton _instance = Singleton._();
factory Singleton() => _instance;
}
ダートシングルトンのベストプラクティス
おすすめ
転載: www.cnblogs.com/Autumoon/p/12327422.html
おすすめ
ランキング