RepoWrite class abstract

A repo in the space advanced to a new revision.

Available extensions
Annotations
  • @freezed

Constructors

RepoWrite({@Default.new('com.atproto.space.defs#repoWrite') String $type, required String repo, required String repoRev, required Map<String, dynamic> data, required String spaceRev, String? prevSpaceRev, Map<String, dynamic>? $unknown})
const
factory
RepoWrite.fromJson(Map<String, Object?> json)
factory

Properties

$type → String
no setterinherited
$unknown → Map<String, dynamic>?
no setterinherited
copyWith → $RepoWriteCopyWith<RepoWrite>
Create a copy of RepoWrite with the given fields replaced by the non-null parameter values.
no setterinherited
data → Map<String, dynamic>
SHA-256 digest of the repo's LtHash state.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasNotPrevSpaceRev → bool

Available on RepoWrite, provided by the RepoWriteExtension extension

no setter
hasPrevSpaceRev → bool

Available on RepoWrite, provided by the RepoWriteExtension extension

no setter
prevSpaceRev → String?
The space revision before this update, if any. Set in notifySpaceUpdate, where a gap indicates missed notifications, which can be recovered with listWriters.
no setterinherited
repo → String
no setterinherited
repoRev → String
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spaceRev → String
The space revision at which this update was sequenced.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_RepoWrite value)) → TResult

Available on RepoWrite, provided by the RepoWritePatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_RepoWrite value)?) → TResult?

Available on RepoWrite, provided by the RepoWritePatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_RepoWrite value)?, {required TResult orElse()}) → TResult

Available on RepoWrite, provided by the RepoWritePatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String $type, String repo, String repoRev, Map<String, dynamic> data, String spaceRev, String? prevSpaceRev, Map<String, dynamic>? $unknown)?, {required TResult orElse()}) → TResult

Available on RepoWrite, provided by the RepoWritePatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this RepoWrite to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String $type, String repo, String repoRev, Map<String, dynamic> data, String spaceRev, String? prevSpaceRev, Map<String, dynamic>? $unknown)) → TResult

Available on RepoWrite, provided by the RepoWritePatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String $type, String repo, String repoRev, Map<String, dynamic> data, String spaceRev, String? prevSpaceRev, Map<String, dynamic>? $unknown)?) → TResult?

Available on RepoWrite, provided by the RepoWritePatterns extension

A variant of when that fallback to returning null

Operators

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

Static Methods

validate(Map<String, dynamic> object) → bool

Constants

knownProps → const List<String>