class Singleton {
  static final Singleton _singleton = Singleton._internal();

  factory Singleton() => _singleton;

  Singleton._internal();
}
1
2
3
4
5
6
7
上次更新: 7/10/2020, 4:18:52 PM