validateFilePathInput method

  1. @protected
void validateFilePathInput(
  1. String filePath,
  2. String fileName
)

Validates input for saveFile.

Implementation

@protected
void validateFilePathInput(String filePath, String fileName) {
  if (filePath.isEmpty) {
    throw const InvalidInputException('File path cannot be empty');
  }
  if (fileName.isEmpty) {
    throw const InvalidInputException('File name cannot be empty');
  }
}