mocks property

Map<Type, dynamic>? mocks
getter/setter pair
  1. null to disable dispatching the action of a certain type.

  2. A MockAction<St> instance to dispatch that action instead, and provide the original action as a getter to the mocked action.

  3. A ReduxAction<St> instance to dispatch that mocked action instead.

  4. ReduxAction<St> Function(ReduxAction<St>) to create a mock from the original action.

  5. St Function(ReduxAction<St>, St) or Future<St> Function(ReduxAction<St>, St) to modify the state directly.

Implementation

Map<Type, dynamic>? mocks;