• This project
    • Loading...
  • Sign in

flutter_package / fluttertpc_get

Go to a project
Toggle navigation
  • Projects
  • Groups
  • Snippets
  • Help
Toggle navigation pinning
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • fluttertpc_get
  • packages
  • get_instance
  • example
  • main.dart
  • added example to dart packages · 5e23f58c
    5e23f58c Browse Files
    Jonatas authored 2020-09-19 13:24:43 -0300
main.dart 192 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11
import 'package:get_instance/get_instance.dart';

void main() {
  Get.put(Foo());

  final foo = Get.find<Foo>();
  final foo2 = Get.find<Foo>();
  print(foo == foo2); // true
}

class Foo {}