FeedViewPref constructor

  1. @JsonSerializable(includeIfNull: false)
const FeedViewPref({
  1. @Default(appBskyActorDefsFeedViewPref) @JsonKey(name: r'$type') String $type,
  2. required String feed,
  3. @Default(false) bool hideReplies,
  4. @Default(true) bool hideRepliesByUnfollowed,
  5. @Default(0) int hideRepliesByLikeCount,
  6. @Default(false) bool hideReposts,
  7. @Default(false) bool hideQuotePosts,
  8. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory FeedViewPref({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.actor.defs#feedViewPref`
  @Default(appBskyActorDefsFeedViewPref)
  @JsonKey(name: r'$type')
  String $type,

  /// The URI of the feed, or an identifier which describes the feed.
  required String feed,

  /// Hide replies in the feed.
  @Default(false) bool hideReplies,

  /// Hide replies in the feed if they are not by followed users.
  @Default(true) bool hideRepliesByUnfollowed,

  /// Hide replies in the feed if they do not have this number of
  /// likes.
  @Default(0) int hideRepliesByLikeCount,

  /// Hide reposts in the feed.
  @Default(false) bool hideReposts,

  /// Hide quote posts in the feed.
  @Default(false) bool hideQuotePosts,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _FeedViewPref;