FeedGeneratorRecord class abstract
Record declaring of the existence of a feed generator, and containing metadata about it. The record can exist in any repository.
- Available extensions
- Annotations
-
- @freezed
Constructors
-
FeedGeneratorRecord.new({@Default('app.bsky.feed.generator') String $type, required String did, required String displayName, String? description, @RichtextFacetConverter() List<
RichtextFacet> ? descriptionFacets, @BlobConverter() Blob? avatar, bool? acceptsInteractions, @UFeedGeneratorLabelsConverter() UFeedGeneratorLabels? labels, @FeedGeneratorContentModeConverter() FeedGeneratorContentMode? contentMode, required DateTime createdAt, Map<String, dynamic> ? $unknown}) -
constfactory
-
FeedGeneratorRecord.fromJson(Map<
String, Object?> json) -
factory
Properties
- $type → String
-
no setterinherited
-
$unknown
→ Map<
String, dynamic> ? -
no setterinherited
- acceptsInteractions → bool?
-
Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions
no setterinherited
- avatar → Blob?
-
no setterinherited
- contentMode → FeedGeneratorContentMode?
-
no setterinherited
-
copyWith
→ $FeedGeneratorRecordCopyWith<
FeedGeneratorRecord> -
Create a copy of FeedGeneratorRecord
with the given fields replaced by the non-null parameter values.
no setterinherited
- createdAt → DateTime
-
no setterinherited
- description → String?
-
no setterinherited
-
descriptionFacets
→ List<
RichtextFacet> ? -
no setterinherited
- did → String
-
no setterinherited
- displayName → String
-
no setterinherited
- hasAvatar → bool
-
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordExtension extension
no setter - hasContentMode → bool
-
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordExtension extension
no setter - hasDescription → bool
-
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordExtension extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hasLabels → bool
-
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordExtension extension
no setter - hasNotAvatar → bool
-
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordExtension extension
no setter - hasNotContentMode → bool
-
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordExtension extension
no setter - hasNotDescription → bool
-
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordExtension extension
no setter - hasNotLabels → bool
-
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordExtension extension
no setter - isAcceptsInteractions → bool
-
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordExtension extension
no setter - isNotAcceptsInteractions → bool
-
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordExtension extension
no setter - labels → UFeedGeneratorLabels?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_FeedGeneratorRecord value)) → TResult -
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_FeedGeneratorRecord value)?) → TResult? -
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_FeedGeneratorRecord value)?, {required TResult orElse()}) → TResult -
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, String did, String displayName, String? description, List< RichtextFacet> ? descriptionFacets, Blob? avatar, bool? acceptsInteractions, UFeedGeneratorLabels? labels, FeedGeneratorContentMode? contentMode, DateTime createdAt, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordPatterns 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 FeedGeneratorRecord to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String $type, String did, String displayName, String? description, List< RichtextFacet> ? descriptionFacets, Blob? avatar, bool? acceptsInteractions, UFeedGeneratorLabels? labels, FeedGeneratorContentMode? contentMode, DateTime createdAt, Map<String, dynamic> ? $unknown)) → TResult -
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, String did, String displayName, String? description, List< RichtextFacet> ? descriptionFacets, Blob? avatar, bool? acceptsInteractions, UFeedGeneratorLabels? labels, FeedGeneratorContentMode? contentMode, DateTime createdAt, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on FeedGeneratorRecord, provided by the FeedGeneratorRecordPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
knownProps
→ const List<
String>