Stack Explorer

GetIt

Utility

Simple service locator for Dart and Flutter

150K/week → Stable

Features

diservice-locatordependency-injectionflutter

Pros and Cons

Ventajas

  • + Very simple to use
  • + No code generation
  • + Fast and lightweight
  • + Lazy loading
  • + Easy singletons

Desventajas

  • - Service Locator antipattern for some
  • - No automatic scoping

Use Cases

  • Dependency injection in Flutter
  • Service registration
  • Global singletons
  • Code decoupling
  • Testing with mocks

Tecnologías Relacionadas

Compatible with

Alternatives