setFilePath method

dynamic setFilePath({
  1. required String filePath,
  2. required String fileName,
})

Implementation

setFilePath({
  required String filePath,
  required String fileName,
}) {
  try {
    //GET THE CURRENT DIRECTORY PATH WITH THE FILE PATH AND FILE NAME
    _filePath = path.join(Directory.current.path, filePath, fileName);
    _file = File(_filePath!);
  } catch (e) {
    rethrow;
  }
}