pubspec_manager_hypen library

Classes

Comments
Used to hold the comments that prefix a section. A comment section is all comments/blank lines that are above a section that are not owned by a (prior) section.
Dependencies
Used to hold a list of DependencyBuilders from a single dependency section in the pubspec.yaml e.g. the list of deps for the 'dependencies' key in pubspec.yaml
Dependency
Base class for each of the Dependency types.
DependencyAltHosted
a hosted dependency which takes the form: dependencies: dcli: hosted: https://onepub.flutter-io.cn version: ^2.3.1 If no version is specified then 'any' is assumed.
DependencyAltHostedBuilder
a hosted dependency which takes the form: dependencies: dcli: hosted: https://onepub.flutter-io.cn version: ^2.3.1 If no version is specified then 'any' is assumed.
DependencyBuilder
Base class for each of the DependencyBuilder types.
DependencyGit
Git style dependency.
DependencyGitBuilder
Git style dependency.
DependencyIterator
DependencyPath
represents a dependency that has a 'path' key A path dependency is located on the local file system. The path is a relative or absolute path to the dependant package. A path dependency takes the form of: dependencies: dcli: path: ../dcli
DependencyPathBuilder
represents a dependency that has a 'path' key A path dependency is located on the local file system. The path is a relative or absolute path to the dependant package. A path dependency takes the form of: dependencies: dcli: path: ../dcli
DependencyPubHosted
A dependench hosted on pub.flutter-io.cn. A pub hosted dependency is of the form dependencies: dcli: ^3.0.1
DependencyPubHostedBuilder
A dependench hosted on pub.flutter-io.cn. A pub hosted dependency is of the form dependencies: dcli: ^3.0.1
DependencySdk
represents a dependency that has a 'path' key A path dependency is located on the local file system. The path is a relative or absolute path to the dependant package. A path dependency takes the form of: dependencies: dcli: path: ../dcli
DependencySdkBuilder
represents a dependency that has a 'path' key A path dependency is located on the local file system. The path is a relative or absolute path to the dependant package. A path dependency takes the form of: dependencies: dcli: path: ../dcli
DependencyVersioned
Some dependency define a package version number Dependencies that do so must implent this interface.
Documentation
DocumentationBuilder
Environment
Holds the details of the environment section. i.e. flutter and sdk versions.
EnvironmentBuilder
Holds the details of the environment section. i.e. flutter and sdk versions.
Executable
An executable script that is attached to the PubSpec.
ExecutableBuilder
represents an executable executable: dcli: dcli_tool
ExecutableIterator
Executables
Used to hold a list of DependencyBuilders from a single dependency section in the pubspec.yaml e.g. the list of deps for the 'dependencies' key in pubspec.yaml
GitDetails
Holds the details of a git dependency.
Homepage
IssueTracker
IssueTrackerBuilder
Name
PubSpec
A representation of the loaded or created pubspec.yaml. All operations start here.
Repository
RepositoryAttached
Version
Holds package version as declared in the pubspec.yaml
VersionBuilder
Builds a Version that can be attached to a document.
VersionConstraint
Holds a dependency version
VersionConstraintBuilder
Holds a dependency version

Exceptions / Errors

DependencyNotFound
Thrown when you try to access a dependency by name and that dependency doesn't exist.
ExecutableNotFound
Thrown when you try to access an executable by name and that executable doesn't exist.
NotFoundException
Thrown when the pubspec file can't be found.
OutOfBoundsException
PubSpecException
All exceptions throw from this package are based on this exception.
VersionException
Thrown when an invalid version is passed.