PubPackage class

Package Model

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

Constructors

PubPackage({required String name, required PackageVersion latest, List<PackageVersion> versions = const []})
const

Properties

changelogUrl String
no setter
copyWith PubPackageCopyWith<PubPackage, PubPackage, PubPackage>
no setterinherited
description String
no setter
hashCode int
The hash code for this object.
no setterinherited
latest PackageVersion
final
latestPubspec → PubSpec
no setter
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
no setter
version String
no setter
versions List<PackageVersion>
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 PubPackage Function(String json)
fromMap → const PubPackage Function(Map<String, dynamic> map)