ioc_widget library

Classes

InjectableWidget<T>
A widget that provides an injectable dependency of type T to the widget tree.
InjectScopedDependency<T extends Object>
A widget that injects a scoped dependency of type T into the widget tree.
InjectScopedNotifier<T extends ChangeNotifier>
A widget that injects a ChangeNotifier from the IoC container into the widget tree, rebuilds when the notifier notifies listeners, and disposes the notifier when removed from the tree.
LazySingletonWidget<T>
A widget that provides a lazy singleton dependency of type T to the widget tree.
MultiIocWidget
A widget that provides multiple dependencies to the widget tree.

Extensions

IocGetExtension on BuildContext
Extension on BuildContext to easily retrieve dependencies from the IoC container.