exists property

bool get exists

Return whether an entity actually exists for this path. The entity could be a File, Directory, or Link.

Implementation

bool get exists {
  return FileSystemEntity.typeSync(_path) != FileSystemEntityType.notFound;
}