NotificationFeedRequestBuilder class

Builder class for NotificationFeedRequest.

Android Reference: NotificationFeedRequestBuilder

Allows step-by-step creation of a NotificationFeedRequest object with fluent setter methods.

Note: You MUST call build before using the request. The type system enforces this — fetchNext() is only available on NotificationFeedRequest, not on the builder itself. This prevents the "builder used without build()" error scenario documented in the design.

Example:

final request = (NotificationFeedRequestBuilder()
  ..setLimit(20)
  ..setReadState(FeedReadState.unread)
  ..setCategory('promotions')
  ..setTags(['important', 'sale']))
  .build();

Constructors

NotificationFeedRequestBuilder()
Default constructor for NotificationFeedRequestBuilder.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() NotificationFeedRequest
Builds and returns a NotificationFeedRequest object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCategory(String category) NotificationFeedRequestBuilder
Sets the category filter. Android Reference: NotificationFeedRequestBuilder.setCategory(String category)
setChannelId(String channelId) NotificationFeedRequestBuilder
Sets the channel ID filter. Android Reference: NotificationFeedRequestBuilder.setChannelId(String channelId)
setDateFrom(String date) NotificationFeedRequestBuilder
Sets the date from filter (ISO 8601 format). Android Reference: NotificationFeedRequestBuilder.setDateFrom(String date)
setDateTo(String date) NotificationFeedRequestBuilder
Sets the date to filter (ISO 8601 format). Android Reference: NotificationFeedRequestBuilder.setDateTo(String date)
setLimit(int limit) NotificationFeedRequestBuilder
Sets the limit for feed items. Android Reference: NotificationFeedRequestBuilder.setLimit(int limit)
setReadState(FeedReadState state) NotificationFeedRequestBuilder
Sets the read state filter. Android Reference: NotificationFeedRequestBuilder.setReadState(FeedReadState state)
setTags(List<String> tags) NotificationFeedRequestBuilder
Sets the tags filter. Android Reference: NotificationFeedRequestBuilder.setTags(List<String> tags)
toString() String
A string representation of this object.
inherited

Operators

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