isFile method

Future<bool> isFile (String path)

Checks if type(path) returns FileSystemEntityType.FILE.

Implementation

static Future<bool> isFile(String path) =>
    _getType(path, true).then((type) => (type == FileSystemEntityType.FILE));