isListed property

bool isListed

Whether this package metadata represents a listed package.

Implementation

bool get isListed {
  if (listed != null) return listed!;

  // A published year of 1900 indicates that this package is unlisted, when
  // the listed property itself is not present (legacy behavior).
  return published?.year != 1900;
}