load method
Loads the file with the specified filename
.
Returns a Future that completes with the loaded File or null
if the file does not exist.
Implementation
Future<File?> load(String filename) async {
try {
final file = await _file(filename);
if (await file.exists()) {
return file;
}
} catch (_) {
return null;
}
return null;
}