GitSource class final

Source code fetched from a Git repository.

Always pin to a full commit SHA for reproducible builds.

Inheritance

Constructors

GitSource({required Uri repository, required String revision, String? subdirectory, bool submodules = false})
const

Properties

cacheKey → String
Cache key components for this source.
no setter
hashCode → int
The hash code for this object.
no setterinherited
label → String
A short label for logging.
no setteroverride
repository → Uri
Repository URL (e.g. https://github.com/org/repo.git).
final
revision → String
Immutable commit SHA. Do not use branches or mutable tags.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subdirectory → String?
Subdirectory within the repo containing the buildable source.
final
submodules → bool
Whether to initialize and update Git submodules.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this source specification to JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited