Relationship class

lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)

https://atprotodart.com/docs/lexicons/app/bsky/graph/defs#relationship

Available extensions
Annotations
  • @freezed

Constructors

Relationship.new({@Default(appBskyGraphDefsRelationship) @JsonKey(name: r'$type') String $type, required String did, @AtUriConverter() AtUri? following, @AtUriConverter() AtUri? followedBy, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
Relationship.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 → $RelationshipCopyWith<Relationship>
no setterinherited
did String
no setterinherited
followedBy AtUri?
if the actor is followed by this DID, contains the AT-URI of the follow record
no setterinherited
following AtUri?
if the actor follows this DID, this is the AT-URI of the follow record
no setterinherited
hasFollowedBy bool

Available on Relationship, provided by the $RelationshipExtension extension

Returns true if followedBy is not null, otherwise false.
no setter
hasFollowing bool

Available on Relationship, provided by the $RelationshipExtension extension

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

Available on Relationship, provided by the $RelationshipExtension extension

Returns true if followedBy is null, otherwise false.
no setter
hasNotFollowing bool

Available on Relationship, provided by the $RelationshipExtension extension

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

Available on Relationship, provided by the $RelationshipExtension extension

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

Available on Relationship, provided by the $RelationshipExtension 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

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