Returns true if the path exists on disk and is pointing at a regular file. Does not follow links.
Future<bool> isFile() => platform.isFile(string);