MockStore<St> constructor

MockStore<St>({
  1. required St initialState,
  2. Object? environment,
  3. Map<Object?, Object?> props = const {},
  4. bool syncStream = false,
  5. TestInfoPrinter? testInfoPrinter,
  6. List<ActionObserver<St>>? actionObservers,
  7. List<StateObserver<St>>? stateObservers,
  8. Persistor<St>? persistor,
  9. Persistor<St>? cloudSync,
  10. ModelObserver? modelObserver,
  11. ErrorObserver<St>? errorObserver,
  12. WrapReduce<St>? wrapReduce,
  13. @Deprecated("Use `globalWrapError` instead. This will be removed.") WrapError<St>? wrapError,
  14. GlobalWrapError<St>? globalWrapError,
  15. bool? defaultDistinct,
  16. CompareBy? immutableCollectionEquality,
  17. int? maxErrorsQueued,
  18. Map<Type, dynamic>? mocks,
})

Implementation

MockStore({
  required St initialState,
  Object? environment,
  Map<Object?, Object?> props = const {},
  bool syncStream = false,
  TestInfoPrinter? testInfoPrinter,
  List<ActionObserver<St>>? actionObservers,
  List<StateObserver<St>>? stateObservers,
  Persistor<St>? persistor,
  Persistor<St>? cloudSync,
  ModelObserver? modelObserver,
  ErrorObserver<St>? errorObserver,
  WrapReduce<St>? wrapReduce,
  @Deprecated("Use `globalWrapError` instead. This will be removed.")
  WrapError<St>? wrapError,
  GlobalWrapError<St>? globalWrapError,
  bool? defaultDistinct,
  CompareBy? immutableCollectionEquality,
  int? maxErrorsQueued,
  this.mocks,
}) : super(
        initialState: initialState,
        environment: environment,
        props: props,
        syncStream: syncStream,
        testInfoPrinter: testInfoPrinter,
        actionObservers: actionObservers,
        stateObservers: stateObservers,
        persistor: persistor,
        cloudSync: cloudSync,
        modelObserver: modelObserver,
        errorObserver: errorObserver,
        wrapReduce: wrapReduce,
        wrapError: wrapError,
        globalWrapError: globalWrapError,
        defaultDistinct: defaultDistinct,
        immutableCollectionEquality: immutableCollectionEquality,
        maxErrorsQueued: maxErrorsQueued,
      );