IocWidget<T> constructor

const IocWidget<T>({
  1. required T factory(
    1. BuildContext context
    ),
  2. Widget? child,
  3. Key? key,
  4. bool isLazySingleton = false,
  5. dynamic dispose()?,
})

Creates an IocWidget.

Implementation

const IocWidget({
  required this.factory,
  this.child,
  super.key,
  this.isLazySingleton = false,
  this.dispose,
});