injectFutureMock method
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),
),
);
}