RepositoryCommit class

Model class for a commit in a repository.

Note: The RepositoryCommit wraps a GitCommit, so author/committer information is in two places, but contain different details about them: in RepositoryCommit "github details", in GitCommit "git details".

Annotations
  • @JsonSerializable()

Constructors

RepositoryCommit({String? url, String? sha, String? htmlUrl, String? commentsUrl, GitCommit? commit, User? author, User? committer, List<GitCommit>? parents, CommitStats? stats, List<CommitFile>? files})
RepositoryCommit.fromJson(Map<String, dynamic> input)
factory

Properties

author User?
Commit Author
getter/setter pair
commentsUrl String?
Comments url.
getter/setter pair
commit GitCommit?
A reference to the raw GitCommit.
getter/setter pair
committer User?
Commit Committer.
getter/setter pair
files List<CommitFile>?
The files changed in this commit.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
htmlUrl String?
Url to Commit Page
getter/setter pair
parents List<GitCommit>?
Commit parents.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sha String?
Commit SHA
getter/setter pair
stats CommitStats?
Commit statistics.
getter/setter pair
url String?
API url.
getter/setter pair

Methods

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

Operators

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