Skip to content

Instantly share code, notes, and snippets.

@Hexer10
Last active August 7, 2020 08:30
Show Gist options
  • Save Hexer10/027b709526fdb77164186ee3cd884e99 to your computer and use it in GitHub Desktop.
Save Hexer10/027b709526fdb77164186ee3cd884e99 to your computer and use it in GitHub Desktop.
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