stat method Null safety
Calls the operating system's
stat() function on path.
Future<FileStat> object containing the data returned by
If path is a symbolic link then it is resolved and results for the resulting file are returned.
If the call fails, completes the future with a
.type set to FileSystemEntityType.notFound and the other fields
Future<FileStat> stat() => FileStat.stat(path);