injectCRUDMock method

void injectCRUDMock(
  1. ICRUD<T, P> fakeRepository()
)

Inject a fake implementation of this injected model.

  • Required parameters:
    • creationFunction (positional parameter): the fake creation function

Implementation

void injectCRUDMock(ICRUD<T, P> Function() fakeRepository) {
  dispose();
  RM.disposeAll();
  _cachedRepoMocks.add(fakeRepository);
}