How the GetIt service locator package works in Dart
Published in
9 min readJul 12, 2023
Unveiling the magic
The GetIt package provides a convenient way to access app services and state management classes from anywhere within your app. This functionality is known as a service locator, which is often compared to dependency injection, another common way to decouple dependencies in your app.