tryRead function
Reads the file content from the given path
.
Returns null if the file couldn't be found or the parsing failed.
Implementation
Progress? tryRead(String path) {
try {
return read(path);
} catch (_) {
return null;
}
}
Reads the file content from the given path
.
Returns null if the file couldn't be found or the parsing failed.
Progress? tryRead(String path) {
try {
return read(path);
} catch (_) {
return null;
}
}