clearAllResponses method
void
clearAllResponses()
Implementation
void clearAllResponses() async {
final result = await clearLogUseCase?.execute();
result?.fold(
(failure) {
_getAllResponsesState = RequestState.error;
_message = failure.message;
notifyListeners();
},
(responses) {
_getAllResponses = [];
_getAllResponsesState = RequestState.loaded;
notifyListeners();
},
);
}