GithubRepoItem class

The model class for trending repo item.

Constructors

GithubRepoItem({required String owner, required String repoName, required String description, required String programmingLanguage, String? programmingLanguageColor, required int totalStars, required String starsSince, required int totalForks, required List<GithubUserItem> topContributors})
Create an instance for a trending repo item.
GithubRepoItem.fromJson(Map<String, dynamic> json)
The package offers a JSON utility for all model classes.
factory
GithubRepoItem.fromRawJson(String rawJson)
The package offers a JSON utility for all model classes.
factory

Properties

description String
The short description of this repository.
final
hashCode int
The hash code for this object.
no setterinherited
owner String
The username or organization name who owns this repository.
final
programmingLanguage String
The primary programming language of this repository. Some have unknown language.
final
programmingLanguageColor String?
The primary programming language color. Some have unknown language or unknown colors..
final
props List<Object?>
This is for equatable integration.
no setter
repoName String
The name of this repository.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
starsSince String
Number of stars of this repository (either for today, this week or this month).
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
topContributors List<GithubUserItem>
Github trending page only displays the top 5 contributors. This contains the username or organization name and avatar url.
final
totalForks int
Total number of forks of this repository.
final
totalStars int
Total number of stars of this repository.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
The package offers a JSON utility for all model classes.
toRawJson() String
The package offers a JSON utility for all model classes.
toString() String
A string representation of this object.
inherited

Operators

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