FeedPostgateRecord class abstract
Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.
- Available extensions
- Annotations
-
- @freezed
Constructors
-
FeedPostgateRecord.new({@Default('app.bsky.feed.postgate') String $type, required DateTime createdAt, required String post, List<
String> ? detachedEmbeddingUris, @UFeedPostgateEmbeddingRulesConverter() List<UFeedPostgateEmbeddingRules> ? embeddingRules, Map<String, dynamic> ? $unknown}) -
constfactory
-
FeedPostgateRecord.fromJson(Map<
String, Object?> json) -
factory
Properties
- $type → String
-
no setterinherited
-
$unknown
→ Map<
String, dynamic> ? -
no setterinherited
-
copyWith
→ $FeedPostgateRecordCopyWith<
FeedPostgateRecord> -
Create a copy of FeedPostgateRecord
with the given fields replaced by the non-null parameter values.
no setterinherited
- createdAt → DateTime
-
no setterinherited
-
detachedEmbeddingUris
→ List<
String> ? -
no setterinherited
-
embeddingRules
→ List<
UFeedPostgateEmbeddingRules> ? -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- post → String
-
Reference (AT-URI) to the post record.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_FeedPostgateRecord value)) → TResult -
Available on FeedPostgateRecord, provided by the FeedPostgateRecordPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_FeedPostgateRecord value)?) → TResult? -
Available on FeedPostgateRecord, provided by the FeedPostgateRecordPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_FeedPostgateRecord value)?, {required TResult orElse()}) → TResult -
Available on FeedPostgateRecord, provided by the FeedPostgateRecordPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, DateTime createdAt, String post, List< String> ? detachedEmbeddingUris, List<UFeedPostgateEmbeddingRules> ? embeddingRules, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on FeedPostgateRecord, provided by the FeedPostgateRecordPatterns 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 FeedPostgateRecord to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String $type, DateTime createdAt, String post, List< String> ? detachedEmbeddingUris, List<UFeedPostgateEmbeddingRules> ? embeddingRules, Map<String, dynamic> ? $unknown)) → TResult -
Available on FeedPostgateRecord, provided by the FeedPostgateRecordPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, DateTime createdAt, String post, List< String> ? detachedEmbeddingUris, List<UFeedPostgateEmbeddingRules> ? embeddingRules, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on FeedPostgateRecord, provided by the FeedPostgateRecordPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
knownProps
→ const List<
String>