InjectedImp<T> constructor
InjectedImp<T> ({
- required Object? creator(),
- required T? initialState,
- required SideEffects<
T> ? sideEffectsGlobal, - required StateInterceptor<
T> ? stateInterceptor, - required bool autoDisposeWhenNotUsed,
- required String? debugPrintWhenNotifiedPreMessageGlobal,
- required Object? toDebugString(
- T?
- required DependsOn<
T> ? dependsOn, - required Object? watch(
- T? s
Implementation
InjectedImp({
required Object? Function() creator,
required T? initialState,
required this.sideEffectsGlobal,
required StateInterceptor<T>? stateInterceptor,
required bool autoDisposeWhenNotUsed,
required this.debugPrintWhenNotifiedPreMessageGlobal,
required this.toDebugString,
required this.dependsOn,
required this.watch,
}) : super(
creator: creator,
initialState: initialState,
stateInterceptorGlobal: stateInterceptor,
autoDisposeWhenNotUsed: autoDisposeWhenNotUsed,
) {
resetDefaultState(() {
creatorUpdatable = creator;
});
}