InjectedCRUDImp<T, P> constructor

InjectedCRUDImp<T, P>({
  1. required ICRUD<T, P> repoCreator(),
  2. required P param()?,
  3. required bool readOnInitialization,
  4. required OnCRUDSideEffects? onCRUDSideEffects,
  5. required StateInterceptor<List<T>>? stateInterceptor,
  6. required SideEffects<List<T>>? sideEffects,
  7. required DependsOn<List<T>>? dependsOn,
  8. required int undoStackLength,
  9. required PersistState<List<T>> persist()?,
  10. required bool autoDisposeWhenNotUsed,
  11. required String? debugPrintWhenNotifiedPreMessage,
  12. required String toDebugString(
    1. List<T>?
    )?,
})

An implementation of InjectedCRUD

Implementation

InjectedCRUDImp({
  required this.repoCreator,
  required this.param,
  required this.readOnInitialization,
  required this.onCRUDSideEffects,
  //
  required StateInterceptor<List<T>>? stateInterceptor,
  // SnapState<List<T>>? Function(MiddleSnapState<List<T>> middleSnap)?
  //     middleSnapState,
  // void Function(List<T>? s)? onInitialized,
  // void Function(List<T> s)? onDisposed,
  // On<void>? onSetState,
  required SideEffects<List<T>>? sideEffects,
  //
  required DependsOn<List<T>>? dependsOn,
  required int undoStackLength,
  required PersistState<List<T>> Function()? persist,
  required bool autoDisposeWhenNotUsed,
  required String? debugPrintWhenNotifiedPreMessage,
  required String Function(List<T>?)? toDebugString,
}) : super(
        creator: () => <T>[],
        initialState: <T>[],
        sideEffects: sideEffects,
        stateInterceptor: stateInterceptor,
        persist: persist,
        undoStackLength: undoStackLength,
        dependsOn: dependsOn,
        autoDisposeWhenNotUsed: autoDisposeWhenNotUsed,
        debugPrintWhenNotifiedPreMessage: debugPrintWhenNotifiedPreMessage,
        toDebugString: toDebugString,
        watch: null,
      );