Injector<T> constructor

const Injector<T>({
  1. required T service(),
  2. void onInit(
    1. T service
    )?,
  3. void onDispose(
    1. T service
    )?,
  4. required Widget builder(
    1. BuildContext context,
    2. T service
    ),
  5. Key? key,
})

Implementation

const Injector({
  required this.service,
  this.onInit,
  this.onDispose,
  required this.builder,
  Key? key,
}) : super(key: key);