InjectedImp<T> constructor

InjectedImp<T>({
  1. required Object? creator(),
  2. required T? initialState,
  3. required SideEffects<T>? sideEffectsGlobal,
  4. required StateInterceptor<T>? stateInterceptor,
  5. required bool autoDisposeWhenNotUsed,
  6. required String? debugPrintWhenNotifiedPreMessageGlobal,
  7. required Object? toDebugString(
    1. T?
    )?,
  8. required DependsOn<T>? dependsOn,
  9. required Object? watch(
    1. 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;
  });
}