PackageMetadata constructor

const PackageMetadata({
  1. required String name,
  2. required Version currentVersion,
  3. Version? latestVersion,
  4. Version? latestStableVersion,
  5. Uri? repositoryUrl,
  6. Uri? issueTrackerUrl,
  7. String? publisherDomain,
  8. double? pubScore,
  9. double? pubPopularity,
  10. int? pubLikes,
  11. VersionConstraint? sdkConstraint,
  12. VersionConstraint? flutterConstraint,
  13. bool? isNullSafe,
  14. bool? isDiscontinued,
  15. bool? isUnlisted,
  16. List<Release> releases = const [],
  17. List<String> topics = const [],
  18. PackageVerification verification = PackageVerification.none,
  19. RepoHealth? repoHealth,
  20. DateTime? fetchedAt,
  21. bool isFromCache = false,
})

Creates a PackageMetadata.

Implementation

const PackageMetadata({
  required this.name,
  required this.currentVersion,
  this.latestVersion,
  this.latestStableVersion,
  this.repositoryUrl,
  this.issueTrackerUrl,
  this.publisherDomain,
  this.pubScore,
  this.pubPopularity,
  this.pubLikes,
  this.sdkConstraint,
  this.flutterConstraint,
  this.isNullSafe,
  this.isDiscontinued,
  this.isUnlisted,
  this.releases = const [],
  this.topics = const [],
  this.verification = PackageVerification.none,
  this.repoHealth,
  this.fetchedAt,
  this.isFromCache = false,
});