setImageFile method

  1. @visibleForTesting
void setImageFile(
  1. File? file
)

Sets the current image file and resets related state if needed.

This method is visible for testing purposes only.

Parameters:

  • file: The image file to set, or null to clear

Implementation

@visibleForTesting
void setImageFile(File? file) {
  _imageFile = file;
  if (file != null) {
    _result = null;
  }
  notifyListeners();
}