PackageHealth constructor

const PackageHealth({
  1. String? latestVersion,
  2. DateTime? latestPublishedAt,
  3. String? publisher,
  4. double? popularity,
  5. int? likes,
  6. int? pubPoints,
  7. List<DateTime> publishedVersions = const <DateTime>[],
  8. bool isDiscontinued = false,
  9. String? repositoryUrl,
  10. String? githubOrg,
  11. int? stars,
  12. int? contributors,
  13. DateTime? lastCommitAt,
  14. int? openIssues,
  15. String? sdkConstraint,
  16. bool offline = false,
})

Creates a package health snapshot.

Implementation

const PackageHealth({
  this.latestVersion,
  this.latestPublishedAt,
  this.publisher,
  this.popularity,
  this.likes,
  this.pubPoints,
  this.publishedVersions = const <DateTime>[],
  this.isDiscontinued = false,
  this.repositoryUrl,
  this.githubOrg,
  this.stars,
  this.contributors,
  this.lastCommitAt,
  this.openIssues,
  this.sdkConstraint,
  this.offline = false,
});