BuildContextEx extension
Extension methods on BuildContext which help working with FactoryContainer
.
- on
Methods
-
getContainer(
) → FactoryContainer -
Returns closest
FactoryContainer
in the widget tree. FactoryContainerWidget must be somewhere on top of widget hierarchy. -
resolve<
T> ({String name = ''}) → T -
Calls
FactoryContainer.resolve
method on closestFactoryContainer
in the widget tree. FactoryContainerWidget must be somewhere on top of widget hierarchy.