InjectorWidget constructor

InjectorWidget({
  1. Key? key,
  2. required Injector injector,
  3. required Widget child,
  4. bool autoDispose = true,
})

Creates an InjectorWidget based on an Injector.

Implementation

factory InjectorWidget({
  Key? key,
  required Injector injector,
  required Widget child,
  bool autoDispose = true,
}) {
  return InjectorWidget._internal(
    key: key,
    injector: injector,
    child: child,
    autoDispose: autoDispose,
  );
}