Commit class

Annotations
  • @freezed

Constructors

Commit({required List<RepoOp> ops, @JsonKey(name: 'repo') required String did, @JsonKey(name: 'seq') required int cursor, required String rev, String? since, @JsonKey(name: 'tooBig') @Default(false) bool isTooBig, @JsonKey(name: 'time') required DateTime createdAt})
const
factory
Commit.fromJson(Map<String, Object?> json)
factory

Properties

copyWith → $CommitCopyWith<Commit>
Create a copy of Commit with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt DateTime
no setterinherited
cursor int
no setterinherited
did String
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isTooBig bool
no setterinherited
ops List<RepoOp>
no setterinherited
rev String
The rev of the emitted commit.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
since String?
The rev of the last emitted commit from this repo.
no setterinherited

Methods

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

Operators

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