Contributor class
A GitHub repository contributor.
Contains basic profile information for a GitHub user or bot that has contributed to the repository.
Constructors
- Contributor({required String login, required String avatarUrl, required String htmlUrl, required String type})
- Creates a Contributor instance.
-
Contributor.fromJson(Map<
String, dynamic> json) -
Creates a Contributor from a JSON map from the GitHub API.
factory
Properties
- avatarUrl → String
-
The URL to the user's GitHub avatar image.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- htmlUrl → String
-
The URL to the user's GitHub profile page.
final
- isBot → bool
-
Whether this contributor is a bot (e.g., dependabot).
no setter
- login → String
-
The user's GitHub username.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The account type (typically "User" or "Bot").
final
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