PubspecGitRepo class abstract

Representation of git-dependency section in a pubspec file.

Example of a git-dependency:

dependencies:
  foo:
    git: # <-- this is the [token] property
      url: https://github.com/example/example
      ref: main # ref is optional

This may also be written in the form:

dependencies:
  foo:
    git:       https://github.com/example/example
    # ^-token  ^--url
    # In this case [ref] is `null`.
Implemented types

Constructors

PubspecGitRepo.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
ref PubspecEntry?
PubspecEntry for ref: main where PubspecEntry.key is ref and PubspecEntry.value is main.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token PubspecNode
The node for this section's key.
no setterinherited
url PubspecEntry?
PubspecEntry for url: https://... or git: https://, where PubspecEntry.key is either url or git, and PubspecEntry.key is the URL.
no setter

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