PackageVersion class

Package Version Model

Mixed in types
Annotations
  • @MappableClass(includeCustomMappers: [PubspecMapper()])

Constructors

PackageVersion({required String version, required PubSpec pubspec, required String archiveUrl, required DateTime published, required String archiveSha256})
const

Properties

archiveSha256 String
final
archiveUrl String
final
copyWith PackageVersionCopyWith<PackageVersion, PackageVersion, PackageVersion>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
published DateTime
final
pubspec → PubSpec
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
inherited
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

fromJson → const PackageVersion Function(String json)
fromMap → const PackageVersion Function(Map<String, dynamic> map)