GitHubRepositoryInfo class

A class that represents and parses GitHub repository information from URLs.

This class extracts and stores components of a GitHub repository URL such as owner, repository name, branch, target, and path for easier manipulation and access to repository resources. Contains parsed information from a GitHub repository URL.

Constructors

GitHubRepositoryInfo({required String owner, required String repo, required String branch, required String target, required String targetPath})
Creates a new GitHubRepositoryInfo instance with the given parameters.
const
GitHubRepositoryInfo.fromUrl(String githubUrl)
Parses a GitHub URL and creates a GitHubRepositoryInfo instance.
factory

Properties

branch → String
The branch name in the repository.
final
hashCode → int
The hash code for this object.
no setterinherited
owner → String
The owner of the GitHub repository (username or organization name).
final
repo → String
The name of the GitHub repository.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
target → String
The target file or directory name at the end of the path.
final
targetPath → String
The path within the repository, excluding the target file/directory.
final

Methods

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