RepositoryCommit class Null safety

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

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
read / write
commentsUrl String?
Comments url.
@JsonKey(name: 'comments_url'), read / write
commit GitCommit?
A reference to the raw GitCommit.
read / write
committer User?
Commit Committer.
read / write
files List<CommitFile>?
The files changed in this commit.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
htmlUrl String?
Url to Commit Page
@JsonKey(name: 'html_url'), read / write
parents List<GitCommit>?
Commit parents.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sha String?
Commit SHA
read / write
stats CommitStats?
Commit statistics.
read / write
url String?
API url.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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