InjectorWidget.bind constructor
InjectorWidget.bind({})
Creates an InjectorWidget based on a BinderFunc
.
Implementation
factory InjectorWidget.bind({
Key? key,
required BindFunc bindFunc,
required Widget child,
bool autoDispose = true,
}) {
return InjectorWidget(
key: key,
injector: Injector(bindFunc: bindFunc),
child: child,
autoDispose: autoDispose);
}