Dependency class final
Data model for recording a dependency and its additional rows.
Params:
dependencyName - field stores the name and version of the dependency in string representation.
dependencyAdditionalLines - field stores all additional dependency strings.
leadingComments - field stores comment lines that appear before the dependency.
Example:
dependencies:
# This is a comment [leadingComments]
http: #[dependencyName]
git: # |
url: https://example.com #↓
ref: main # [dependencyAdditionalLines]
Constructors
Properties
-
dependencyAdditionalLines
→ List<
String> -
final
- dependencyName → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
leadingComments
→ List<
String> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{List< String> ? dependencyAdditionalLines, List<String> ? leadingComments}) → Dependency -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited