Last active
March 22, 2021 14:18
-
-
Save yusirdemir/c255d1b56229860ab4df4b52de4cf266 to your computer and use it in GitHub Desktop.
Eager Singleton
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 NavigationService { | |
static NavigationService _instace = NavigationService._init(); | |
static NavigationService get instance => _instace; | |
NavigationService._init(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment