Locator typedef
Locator =
T Function<T>()
A generic function that can be called to read providers, without having a
reference on BuildContext
.
It is typically a reference to the read
BuildContext
extension:
BuildContext context;
Locator locator = context.read;
This function
Implementation
typedef Locator = T Function<T>();