isFile method

Future<bool> isFile (String path)

Checks if type(path) returns io.FileSystemEntityType.FILE.

Implementation

Future<bool> isFile(String path) async =>
    await type(path) == io.FileSystemEntityType.file;