entityExists function

Future<bool> entityExists(
  1. FileSystemEntity entity
)

Returns true is an entity exists.

Implementation

Future<bool> entityExists(FileSystemEntity entity) async {
  return (await entity.fs.type(entity.path)) != FileSystemEntityType.notFound;
}