doFakeRequest<M extends DomainModel> method
Implementation
Future<void> doFakeRequest<M extends DomainModel>(M domainModel) async {
await request(
domainModel,
onFailure: (failure) => _entity.copyWith(value: 'failure'),
onSuccess: (success) {
successInput = success as S?;
return _entity.copyWith(value: 'success');
},
);
}