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 hiddenByThreadgate, required bool mutedByViewer, Map<String, dynamic>? $unknown})
const
factory
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
hiddenByThreadgate bool
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

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_ThreadItemPost value)?) → TResult?

Available on ThreadItemPost, provided by the ThreadItemPostPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_ThreadItemPost value)?, {required TResult orElse()}) → TResult

Available on ThreadItemPost, provided by the ThreadItemPostPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String $type, PostView post, bool moreParents, int moreReplies, bool opThread, bool hiddenByThreadgate, bool mutedByViewer, Map<String, dynamic>? $unknown)?, {required TResult orElse()}) → TResult

Available on ThreadItemPost, provided by the ThreadItemPostPatterns extension

A variant of when that fallback to an orElse 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 hiddenByThreadgate, bool mutedByViewer, Map<String, dynamic>? $unknown)) → TResult

Available on ThreadItemPost, provided by the ThreadItemPostPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String $type, PostView post, bool moreParents, int moreReplies, bool opThread, bool hiddenByThreadgate, bool mutedByViewer, Map<String, dynamic>? $unknown)?) → TResult?

Available on ThreadItemPost, provided by the ThreadItemPostPatterns extension

A variant of when that fallback to returning null

Operators

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

Static Methods

validate(Map<String, dynamic> object) bool

Constants

knownProps → const List<String>