IocWidget<T> constructor
const
IocWidget<T> ({
- required T factory(
- BuildContext context
- Widget? child,
- Key? key,
- bool isLazySingleton = false,
- dynamic dispose()?,
Creates an IocWidget.
Implementation
const IocWidget({
required this.factory,
this.child,
super.key,
this.isLazySingleton = false,
this.dispose,
});