ViewerState class

Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests.

https://atprotodart.com/docs/lexicons/app/bsky/feed/defs#viewerstate

Available extensions
Annotations
  • @freezed

Constructors

ViewerState.new({@Default(appBskyFeedDefsViewerState) @JsonKey(name: r'$type') String $type, @AtUriConverter() AtUri? repost, @AtUriConverter() AtUri? like, @Default(false) bool threadMuted, @Default(false) bool replyDisabled, @Default(false) bool embeddingDisabled, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
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
copyWith → $ViewerStateCopyWith<ViewerState>
no setterinherited
embeddingDisabled bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasLike bool

Available on ViewerState, provided by the $ViewerStateExtension extension

Returns true if like is not null, otherwise false.
no setter
hasNotLike bool

Available on ViewerState, provided by the $ViewerStateExtension extension

Returns true if like is null, otherwise false.
no setter
hasNotRepost bool

Available on ViewerState, provided by the $ViewerStateExtension extension

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

Available on ViewerState, provided by the $ViewerStateExtension extension

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

Available on ViewerState, provided by the $ViewerStateExtension extension

Returns true if repost is not null, otherwise false.
no setter
hasUnknown bool

Available on ViewerState, provided by the $ViewerStateExtension extension

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

Available on ViewerState, provided by the $ViewerStateExtension extension

Returns true or false from embeddingDisabled.
no setter
isNotEmbeddingDisabled bool

Available on ViewerState, provided by the $ViewerStateExtension extension

Returns negated true or false from embeddingDisabled.
no setter
isNotReplyDisabled bool

Available on ViewerState, provided by the $ViewerStateExtension extension

Returns negated true or false from replyDisabled.
no setter
isNotThreadMuted bool

Available on ViewerState, provided by the $ViewerStateExtension extension

Returns negated true or false from threadMuted.
no setter
isReplyDisabled bool

Available on ViewerState, provided by the $ViewerStateExtension extension

Returns true or false from replyDisabled.
no setter
isThreadMuted bool

Available on ViewerState, provided by the $ViewerStateExtension extension

Returns true or false from threadMuted.
no setter
like AtUri?
no setterinherited
replyDisabled bool
no setterinherited
repost AtUri?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threadMuted bool
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