injectFutureMock method

  1. @override
void injectFutureMock(
  1. Future<List<T>> fakeCreator()
)
override

Inject a fake future implementation of this injected model.

  • Required parameters:
    • creationFunction (positional parameter): the fake future

Implementation

@override
void injectFutureMock(Future<List<T>> Function() fakeCreator) async {
  super.injectFutureMock(fakeCreator);
  stateAsync.then(
    (value) => onMiddleCRUD(
      const SnapState.none().copyToHasData(snapValue.data),
    ),
  );
}