Last active
August 7, 2020 08:30
-
-
Save Hexer10/027b709526fdb77164186ee3cd884e99 to your computer and use it in GitHub Desktop.
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
class Singleton { | |
static final _instance = Singleton._internal(); | |
factory Singleton() => _instance; | |
Singleton._internal(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment