PackageMetadata constructor
const
PackageMetadata({
- required String name,
- required Version currentVersion,
- Version? latestVersion,
- Version? latestStableVersion,
- Uri? repositoryUrl,
- Uri? issueTrackerUrl,
- String? publisherDomain,
- double? pubScore,
- double? pubPopularity,
- int? pubLikes,
- VersionConstraint? sdkConstraint,
- VersionConstraint? flutterConstraint,
- bool? isNullSafe,
- bool? isDiscontinued,
- bool? isUnlisted,
- List<
Release> releases = const [], - List<
String> topics = const [], - PackageVerification verification = PackageVerification.none,
- RepoHealth? repoHealth,
- DateTime? fetchedAt,
- 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,
});