InjectedCRUDImp<T, P> constructor
InjectedCRUDImp<T, P> ({
- required ICRUD<
T, P> repoCreator(), - required P param()?,
- required bool readOnInitialization,
- required OnCRUDSideEffects? onCRUDSideEffects,
- required StateInterceptor<
List< ? stateInterceptor,T> > - required SideEffects<
List< ? sideEffects,T> > - required DependsOn<
List< ? dependsOn,T> > - required int undoStackLength,
- required PersistState<
List< persist()?,T> > - required bool autoDisposeWhenNotUsed,
- required String? debugPrintWhenNotifiedPreMessage,
- required String toDebugString(
- List<
T> ?
- List<
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,
);