DependencyBuilderPubHosted class

A dependench hosted on pub.flutter-io.cn. A pub hosted dependency is of the form dependencies: dcli: ^3.0.1

Implemented types
Annotations
  • @immutable

Constructors

DependencyBuilderPubHosted({required String name, String? versionConstraint, List<String>? comments})
If you don't pass in a versionConstraint then the version will be left empty when you save The name of the dependency to add. The versionConstraint such as

Properties

comments List<String>
List of comments to be prepended to the dependency.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
the name of the dependency package
latefinaloverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
versionConstraint String?
The version constraint for the dependency e.g. ^1.0.0
latefinal

Methods

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