tryRead function

Progress? tryRead(
  1. String path
)

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