dependencies_flutter library

Dependency injection container for dart.

Classes

InjectorWidget
InheritedWidget containing an Injector.
InjectorWidgetMixin
Utility mixin to easily use the injector in the InjectorWidget. This can be applied to State or to StatelessWidget classes.
ModuleWidget
Utility base Widget to set up bindings.
WithInjectorWidget
Widget able to build it's child from the Injector in the current BuildContext.
WithInstanceWidget<T>
Widget able to build it's child from the instance found in the Injector in the current BuildContext.

Typedefs

InjectorBuilder(Injector injector) Widget
Builder to construct a Widget for the given Injector.
InstanceBuilder<T>(T instance) Widget
Builder to construct a Widget for the given instance of type T

Exceptions / Errors

InjectorWidgetError
Thrown when the InjectorWidget is not present.