EmbedExternalViewArticlePublicationViewerState class abstract
Metadata about the requesting account's relationship with the subject publication. Only has meaningful content for authed requests.
- Available extensions
- Annotations
-
- @freezed
Constructors
-
EmbedExternalViewArticlePublicationViewerState({@Default.new('app.bsky.embed.external#viewArticlePublicationViewerState') String $type, @AtUriConverter.new() AtUri? subscription, @ProfileViewBasicConverter() List<
ProfileViewBasic> ? knownSubscribers, int? knownSubscriberCount, Map<String, dynamic> ? $unknown}) -
constfactory
-
EmbedExternalViewArticlePublicationViewerState.fromJson(Map<
String, Object?> json) -
factory
Properties
- $type → String
-
no setterinherited
-
$unknown
→ Map<
String, dynamic> ? -
no setterinherited
-
copyWith
→ $EmbedExternalViewArticlePublicationViewerStateCopyWith<
EmbedExternalViewArticlePublicationViewerState> -
Create a copy of EmbedExternalViewArticlePublicationViewerState
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasKnownSubscriberCount → bool
-
Available on EmbedExternalViewArticlePublicationViewerState, provided by the EmbedExternalViewArticlePublicationViewerStateExtension extension
no setter - hasNotKnownSubscriberCount → bool
-
Available on EmbedExternalViewArticlePublicationViewerState, provided by the EmbedExternalViewArticlePublicationViewerStateExtension extension
no setter - hasNotSubscription → bool
-
Available on EmbedExternalViewArticlePublicationViewerState, provided by the EmbedExternalViewArticlePublicationViewerStateExtension extension
no setter - hasSubscription → bool
-
Available on EmbedExternalViewArticlePublicationViewerState, provided by the EmbedExternalViewArticlePublicationViewerStateExtension extension
no setter - knownSubscriberCount → int?
-
Total number of accounts the requesting account follows that subscribed to the subject, including those in knownSubscribers.
no setterinherited
-
knownSubscribers
→ List<
ProfileViewBasic> ? -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscription → AtUri?
-
The requesting account's site.standard.graph.subscription record for this publication, if subscribed.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_EmbedExternalViewArticlePublicationViewerState value)) → TResult -
Available on EmbedExternalViewArticlePublicationViewerState, provided by the EmbedExternalViewArticlePublicationViewerStatePatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_EmbedExternalViewArticlePublicationViewerState value)?) → TResult? -
Available on EmbedExternalViewArticlePublicationViewerState, provided by the EmbedExternalViewArticlePublicationViewerStatePatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_EmbedExternalViewArticlePublicationViewerState value)?, {required TResult orElse()}) → TResult -
Available on EmbedExternalViewArticlePublicationViewerState, provided by the EmbedExternalViewArticlePublicationViewerStatePatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, AtUri? subscription, List< ProfileViewBasic> ? knownSubscribers, int? knownSubscriberCount, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on EmbedExternalViewArticlePublicationViewerState, provided by the EmbedExternalViewArticlePublicationViewerStatePatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this EmbedExternalViewArticlePublicationViewerState to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String $type, AtUri? subscription, List< ProfileViewBasic> ? knownSubscribers, int? knownSubscriberCount, Map<String, dynamic> ? $unknown)) → TResult -
Available on EmbedExternalViewArticlePublicationViewerState, provided by the EmbedExternalViewArticlePublicationViewerStatePatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, AtUri? subscription, List< ProfileViewBasic> ? knownSubscribers, int? knownSubscriberCount, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on EmbedExternalViewArticlePublicationViewerState, provided by the EmbedExternalViewArticlePublicationViewerStatePatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
knownProps
→ const List<
String>