HostedPubEntry class

HostedPubEntry is a subtype of PubEntry for hosted packages. It overrides resolveRemote to perform an HTTP call and produces a SRC_URI and checksum line for hosted packages.

Inheritance

Constructors

HostedPubEntry({required String name, required String dependency, required PubDesc? description, required String version})
HostedPubEntry.fromYamlMap(String name, YamlMap map)
factory

Properties

dep String
no setterinherited
description PubDesc?
no setterinherited
encodedHost String?
Returns an encoded version of the host portion of the URL. (Replaces '/' with '%47' after encoding.)
no setterinherited
git bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hosted bool
no setterinherited
name String
no setterinherited
remote bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String?
no setteroverride
version String
no setterinherited

Methods

checksum() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolvedFileName() String?
Resolves and returns the file name from the _resolvedUrl if available.
resolveRemote() Future
By default, a generic PubEntry does not fetch a resolved URL.
override
splitUri() Map<String?, String?>
inherited
toString() String
A string representation of this object.
inherited
uri({String? downloadPrefix}) String
override

Operators

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