isFile method

Future<bool> isFile(
  1. String path
)

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

Implementation

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