kursat-ozturk / singleton_pattern_dart

Singleton is a creational design pattern that ensures that a class has only one instance and provides an easy global access to that instance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

singleton_pattern_dart

Singleton is a creational design pattern that ensures that a class has only one instance and provides an easy global access to that instance.

The main tenets of this pattern are:

  • Ensure that the class has only a single instance.
  • Provide easy global access to this instance.
  • Control how it is instantiated.
  • Any critical region must be entered serially.

About

Singleton is a creational design pattern that ensures that a class has only one instance and provides an easy global access to that instance.


Languages

Language:C++ 44.9%Language:CMake 37.0%Language:Dart 7.9%Language:HTML 3.7%Language:Swift 3.4%Language:C 2.8%Language:Kotlin 0.3%Language:Objective-C 0.1%