Checks if type(path) returns FileSystemEntityType.file.
static Future<bool> isFile(String path) => _getType(path, true).then((type) => (type == FileSystemEntityType.file));