ThreadItemPost class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
-
ThreadItemPost.new({@Default('app.bsky.unspecced.defs#threadItemPost') String $type, @PostViewConverter() required PostView post, required bool moreParents, required int moreReplies, required bool opThread, required bool mutedByViewer, Map<
String, dynamic> ? $unknown}) -
constfactory
-
ThreadItemPost.fromJson(Map<
String, Object?> json) -
factory
Properties
- $type → String
-
no setterinherited
-
$unknown
→ Map<
String, dynamic> ? -
no setterinherited
-
copyWith
→ $ThreadItemPostCopyWith<
ThreadItemPost> -
Create a copy of ThreadItemPost
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread.
no setterinherited
- isHiddenByThreadgate → bool
-
Available on ThreadItemPost, provided by the ThreadItemPostExtension extension
no setter - isMoreParents → bool
-
Available on ThreadItemPost, provided by the ThreadItemPostExtension extension
no setter - isMutedByViewer → bool
-
Available on ThreadItemPost, provided by the ThreadItemPostExtension extension
no setter - isNotHiddenByThreadgate → bool
-
Available on ThreadItemPost, provided by the ThreadItemPostExtension extension
no setter - isNotMoreParents → bool
-
Available on ThreadItemPost, provided by the ThreadItemPostExtension extension
no setter - isNotMutedByViewer → bool
-
Available on ThreadItemPost, provided by the ThreadItemPostExtension extension
no setter - isNotOpThread → bool
-
Available on ThreadItemPost, provided by the ThreadItemPostExtension extension
no setter - isOpThread → bool
-
Available on ThreadItemPost, provided by the ThreadItemPostExtension extension
no setter - moreParents → bool
-
This post has more parents that were not present in the response. This is just a boolean, without the number of parents.
no setterinherited
- moreReplies → int
-
This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate.
no setterinherited
- mutedByViewer → bool
-
This is by an account muted by the viewer requesting it.
no setterinherited
- opThread → bool
-
This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread.
no setterinherited
- post → PostView
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_ThreadItemPost value)) → TResult -
Available on ThreadItemPost, provided by the ThreadItemPostPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ThreadItemPost value)?) → TResult? -
Available on ThreadItemPost, provided by the ThreadItemPostPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ThreadItemPost value)?, {required TResult orElse()}) → TResult -
Available on ThreadItemPost, provided by the ThreadItemPostPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, PostView post, bool moreParents, int moreReplies, bool opThread, bool mutedByViewer, Map< String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on ThreadItemPost, provided by the ThreadItemPostPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ThreadItemPost to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String $type, PostView post, bool moreParents, int moreReplies, bool opThread, bool mutedByViewer, Map< String, dynamic> ? $unknown)) → TResult -
Available on ThreadItemPost, provided by the ThreadItemPostPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, PostView post, bool moreParents, int moreReplies, bool opThread, bool mutedByViewer, Map< String, dynamic> ? $unknown)?) → TResult? -
Available on ThreadItemPost, provided by the ThreadItemPostPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
knownProps
→ const List<
String>