getContainer method
FactoryContainer
getContainer()
Returns closest FactoryContainer
in the widget tree.
FactoryContainerWidget must be somewhere on top of widget hierarchy.
Implementation
FactoryContainer getContainer() => dependOnInheritedWidgetOfExactType<FactoryContainerWidget>()!.container;