stat method Null safety

Future<FileStat> stat (
  1. String path
)

Asynchronously calls the operating system's stat() function (or equivalent) on path.

Returns a Future which completes with the same results as statSync.

Implementation

static Future<FileStat> stat(String path) {
  final IOOverrides? overrides = IOOverrides.current;
  if (overrides == null) {
    return _stat(path);
  }
  return overrides.stat(path);
}