ArchiveSource class final
Source code downloaded as an immutable archive.
Archives are preferred over Git clones inside build hooks because
they are downloadable with standard HTTP, verifiable before extraction,
independent of a local git installation, and easier to cache
deterministically.
- Inheritance
-
- Object
- SourceSpecification
- ArchiveSource
Constructors
- ArchiveSource({required Uri uri, required String sha256, String? subdirectory})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
A short label for logging.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sha256 → String
-
Expected SHA-256 hash of the downloaded archive.
final
- subdirectory → String?
-
Subdirectory within the extracted archive containing the buildable source.
final
- uri → Uri
-
URL of the archive (
.tar.gz,.zip, etc.).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