get<T> static method
Provides a way to access a pre-registered reactive instance of type T
.
context
must be provided so the widget is subscribed and will update on
all changes whenever the ReactiveController.setState method is called.
Implementation
static T get<T>(BuildContext context, [bool subscribe = true]) =>
getInjectable<T>(context, subscribe: subscribe).singleton;