Locator typedef

Locator = T Function<T>()

A function that allows obtaining other objects.

This is usually equivalent to Provider.of, but with no dependency on Flutter

May throw a DependencyNotFoundException.

Implementation

typedef Locator = T Function<T>();