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
-
- Object
- $HostedPackageDependencySpec
- HostedPackageDependencySpec
- 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
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