Injector constructor
const
Injector({
- Key? key,
- required List<
Injectable> inject, - required Widget builder(),
- void initState()?,
- void dispose()?,
- void afterInitialBuild(
- BuildContext context
- void appLifeCycle()?,
- List<
ReactiveModel> ? reinjectOn, - bool shouldNotifyOnReinjectOn = true,
A class used to register (inject) models.
Implementation
const Injector({
Key? key,
// for injection
required this.inject,
required this.builder,
//for app lifecycle
this.initState,
this.dispose,
this.afterInitialBuild,
this.appLifeCycle,
this.reinjectOn,
this.shouldNotifyOnReinjectOn = true,
// this.disposeModels = false,
}) : super(key: key);