Relationship class
Represents the relationship between accounts, such as following / blocking / muting / etc.
- Annotations
-
- @freezed
Constructors
-
Relationship({@JsonKey(name: 'id') String? id, @JsonKey(name: 'following') bool? following, @JsonKey(name: 'showing_reblogs') bool? showingReblogs, @JsonKey(name: 'notifying') bool? notifying, @JsonKey(name: 'languages') List<
String> ? languages, @JsonKey(name: 'followed_by') bool? followedBy, @JsonKey(name: 'blocking') bool? blocking, @JsonKey(name: 'blocked_by') bool? blockedBy, @JsonKey(name: 'muting') bool? muting, @JsonKey(name: 'muting_notifications') bool? mutingNotifications, @JsonKey(name: 'requested') bool? requested, @JsonKey(name: 'requested_by') bool? requestedBy, @JsonKey(name: 'domain_blocking') bool? domainBlocking, @JsonKey(name: 'endorsed') bool? endorsed, @JsonKey(name: 'note') String? note}) -
constfactory
-
Relationship.fromJson(Map<
String, dynamic> json) -
factory
Properties
- blockedBy → bool?
-
Is this user blocking you?
no setterinherited
- blocking → bool?
-
Are you blocking this user?
no setterinherited
-
copyWith
→ $RelationshipCopyWith<
Relationship> -
Create a copy of Relationship
with the given fields replaced by the non-null parameter values.
no setterinherited
- domainBlocking → bool?
-
Are you blocking this user’s domain?
no setterinherited
- endorsed → bool?
-
Are you featuring this user on your profile?
no setterinherited
- followedBy → bool?
-
Are you followed by this user?
no setterinherited
- following → bool?
-
Are you following this user?
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
The account ID.
no setterinherited
-
languages
→ List<
String> ? -
Which languages are you following from this user?
no setterinherited
- muting → bool?
-
Are you muting this user?
no setterinherited
- mutingNotifications → bool?
-
Are you muting notifications from this user?
no setterinherited
- note → String?
-
This user’s profile bio
no setterinherited
- notifying → bool?
-
Have you enabled notifications for this user?
no setterinherited
- requested → bool?
-
Do you have a pending follow request for this user?
no setterinherited
- requestedBy → bool?
-
Has this user requested to follow you?
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showingReblogs → bool?
-
Are you receiving this user’s boosts in your home timeline?
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this Relationship to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited