asFile function
convert to a file object if necessary
Implementation
File asFile(FileSystemEntity file) {
if (file is File) {
return file;
} else {
return File(file.path);
}
}
convert to a file object if necessary
File asFile(FileSystemEntity file) {
if (file is File) {
return file;
} else {
return File(file.path);
}
}