HostedPackageDependencySpec class

A hosted package is one that can be downloaded from the pub.dev site (or another HTTP server that speaks the same API). https://dart.dev/tools/pub/dependencies

Inheritance
Annotations
  • @immutable
  • @FunctionalData()

Constructors

HostedPackageDependencySpec({required String package, Optional<String> version = const Optional.none(), Optional<String> name = const Optional.none(), Optional<String> url = const Optional.none()})
Default constructor
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name → Optional<String>
final
package String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url → Optional<String>
final
version → Optional<String>
final

Methods

copyUsing(void mutator(HostedPackageDependencySpec$Change change)) HostedPackageDependencySpec
inherited
copyWith({String? package, Optional<String>? version, Optional<String>? name, Optional<String>? url}) HostedPackageDependencySpec
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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