removeImage method

void removeImage()

Removes the current image and resets error state.

Implementation

void removeImage() {
  // Clear stored image data
  _imageData = null;
  // Reset error state to false
  changeOnErrorState(false);
  // Notify listeners of state change
  notifyListeners();
}