Commit class

Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature.

https://atprotodart.com/docs/lexicons/com/atproto/sync/subscribeRepos#commit

Available extensions
Annotations
  • @freezed

Constructors

Commit({@Default(comAtprotoSyncSubscribeReposCommit) @JsonKey(name: r'$type') String $type, required int seq, required bool tooBig, required String repo, required String commit, required String rev, String? since, required List<int> blocks, @RepoOpConverter() required List<RepoOp> ops, required List<String> blobs, required DateTime time, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
Commit.fromJson(Map<String, dynamic> json)
factory

Properties

$type String
The unique namespace for this lex object.
no setterinherited
$unknown Map<String, dynamic>?
Contains unknown objects not defined in Lexicon.
no setterinherited
blobs List<String>
no setterinherited
blocks List<int>
CAR file containing relevant blocks, as a diff since the previous repo state.
no setterinherited
commit String
Repo commit object CID.
no setterinherited
copyWith → $CommitCopyWith<Commit>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
ops List<RepoOp>
no setterinherited
repo String
The repo this event comes from.
no setterinherited
rev String
The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seq int
The stream sequence number of this message.
no setterinherited
since String?
The rev of the last emitted commit from this repo (if any).
no setterinherited
time DateTime
Timestamp of when this message was originally broadcast.
no setterinherited
tooBig bool
Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data.
no setterinherited

Methods

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

Operators

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