getFile method
if path (entire Lunix or windows path) is provide, fileName must be null.
- returns the file or null if file do not exists
Implementation
Future<File?> getFile({String? fileName, String? path}) async {
File file =
File(validatePath(path) ?? "${await filesPath}$pathJoin$fileName");
return file.existsSync() ? file : null;
}