HostedPackageDependency class

Hosted dependency as specified by https://dart.dev/tools/pub/dependencies

Inheritance
Annotations
  • @immutable
  • @FunctionalData()

Constructors

HostedPackageDependency({required String package, required String version, required String name, required String url, required DependencyType type, String? sha256})
Default constructor
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
final
package String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sha256 String?
Added in dart 2.19 Keeping it nullable for backwards compatibility
final
type DependencyType
final
url String
final
version String
final

Methods

copyUsing(void mutator(HostedPackageDependency$Change change)) HostedPackageDependency
inherited
copyWith({String? package, String? version, String? name, String? url, String? sha256, DependencyType? type}) HostedPackageDependency
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