exists method

Future<bool> exists(
  1. String path
)

Checks whether the file system entity with this path exists.

Implementation

Future<bool> exists(String path) => type(path, followLinks: false)
    .then((e) => e != FileSystemEntityType.notFound);