exists property

bool 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;
}