reset method

void reset()

Resets the view model to its initial state.

Clears all classification results, selected image, and error messages. Notifies listeners after resetting the state.

Implementation

void reset() {
  _state = ClassificationState.initial;
  _imageFile = null;
  _result = null;
  _errorMessage = null;
  _submissionResult = null;
  _webPredictionResult = null;
  _isFetchingWebPrediction = false;
  notifyListeners();
}