Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart singleton

main() {
  var s1 = Singleton();
  var s2 = Singleton();
  print(identical(s1, s2));  // true
  print(s1 == s2);           // true
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dart #singleton
ADD COMMENT
Topic
Name
2+8 =