resolve<T> method
Calls FactoryContainer.resolve
method on closest FactoryContainer
in the widget tree.
FactoryContainerWidget must be somewhere on top of widget hierarchy.
Implementation
T resolve<T>({String name = ''}) => getContainer().resolve<T>(name: name);