Injector<T> constructor

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
    ),
})

Implementation

Injector({
  required this.service,
  this.onInit,
  this.onDispose,
  required this.builder,
});