doFakeRequest<M extends DomainModel> method

Future<void> doFakeRequest<M extends DomainModel>(
  1. M domainModel
)

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