Identity class

Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.

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

Available extensions
Annotations
  • @freezed

Constructors

Identity.new({@Default(comAtprotoSyncSubscribeReposIdentity) @JsonKey(name: r'$type') String $type, required int seq, required String did, required DateTime time, String? handle, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
Identity.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
copyWith → $IdentityCopyWith<Identity>
no setterinherited
did String
no setterinherited
handle String?
The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details.
no setterinherited
hasHandle bool

Available on Identity, provided by the $IdentityExtension extension

Returns true if handle is not null, otherwise false.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasNotHandle bool

Available on Identity, provided by the $IdentityExtension extension

Returns true if handle is null, otherwise false.
no setter
hasNotUnknown bool

Available on Identity, provided by the $IdentityExtension extension

Returns true if this object has not unknown objects, otherwise false.
no setter
hasUnknown bool

Available on Identity, provided by the $IdentityExtension extension

Returns true if this object has unknown objects, otherwise false.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seq int
no setterinherited
time DateTime
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