stat method

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

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/FileStat/stat.html