setFilePath method
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;
}
}