Injector<T> constructor
const
Injector<T> ({
- required T service(),
- void onInit(
- T service
- void onDispose(
- T service
- required Widget builder(
- BuildContext context,
- T service
- Key? key,
Implementation
const Injector({
required this.service,
this.onInit,
this.onDispose,
required this.builder,
Key? key,
}) : super(key: key);