This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//In Dart | |
//You can make Singleton class easily. | |
class FooManager { | |
final _inst = FooManager._internal(); | |
FooManager._internal(); | |
factory FooManager() => _inst; | |
//for test | |
testPrint(){ |