ViewerState class
Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests.
https://atprotodart.com/docs/lexicons/app/bsky/actor/defs#viewerstate
- Available extensions
- Annotations
-
- @freezed
Constructors
-
ViewerState({@Default(appBskyActorDefsViewerState) @JsonKey(name: r'$type') String $type, @Default(false) bool muted, @ListViewBasicConverter() ListViewBasic? mutedByList, @Default(false) bool blockedBy, @AtUriConverter() AtUri? blocking, @ListViewBasicConverter() ListViewBasic? blockingByList, @AtUriConverter() AtUri? following, @AtUriConverter() AtUri? followedBy, @KnownFollowersConverter() KnownFollowers? knownFollowers, @JsonKey(name: r'$unknown') Map<
String, dynamic> ? $unknown}) -
constfactory
-
ViewerState.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
- blockedBy → bool
-
no setterinherited
- blocking → AtUri?
-
no setterinherited
- blockingByList → ListViewBasic?
-
no setterinherited
-
copyWith
→ $ViewerStateCopyWith<
ViewerState> -
no setterinherited
- followedBy → AtUri?
-
no setterinherited
- following → AtUri?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- knownFollowers → KnownFollowers?
-
no setterinherited
- muted → bool
-
no setterinherited
- mutedByList → ListViewBasic?
-
no setterinherited
- 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