What is a service locator in Dart?

This is a simple Service Locator for Dart and Flutter projects with some additional goodies highly inspired by Splat . It can be used instead of InheritedWidget or Provider to access objects e.g. from your UI. Typical usage: Accessing service objects like REST API clients or databases so that they easily can be mocked.

Read more