MastodonRelationship class

Relationship between two accounts (follow, block, mute, etc.).

Annotations

Constructors

MastodonRelationship({required String id, required bool following, required bool showingReblogs, required bool notifying, required bool followedBy, required bool blocking, required bool blockedBy, required bool muting, required bool mutingNotifications, required bool requested, required bool requestedBy, required bool domainBlocking, required bool endorsed, required String note, List<String>? languages})
Creates a MastodonRelationship with the given fields.
const
MastodonRelationship.fromJson(Map<String, dynamic> json)
Creates a MastodonRelationship from a JSON map.
factory

Properties

blockedBy bool
Whether you are blocked by this account.
final
blocking bool
Whether you are blocking this account.
final
domainBlocking bool
Whether you are blocking this account's domain.
final
endorsed bool
Whether you are featuring this account on your profile.
final
followedBy bool
Whether this account follows you.
final
following bool
Whether you are following this account.
final
hashCode int
The hash code for this object.
no setterinherited
id String
ID of the target account.
final
languages List<String>?
List of languages you follow from this account (ISO 639-1).
final
muting bool
Whether you are muting this account.
final
mutingNotifications bool
Whether you are muting notifications from this account.
final
note String
Private note set on this account.
final
notifying bool
Whether notifications from this account are enabled.
final
requested bool
Whether a follow request to this account is pending.
final
requestedBy bool
Whether a follow request from this account is pending.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showingReblogs bool
Whether boosts from this account are shown in your home timeline.
final

Methods

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

Operators

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