NotificationGqlRepository class Null safety
Constructors
- NotificationGqlRepository(GraphQLClient graphQLClient, Logger? logger)
Properties
- graphQLClient → GraphQLClient
-
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- logger → Logger?
-
final
-
notificationStream
→ Stream<
BuiltList< Notification> > -
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
getNotifications(
{Instant? fromDate, Instant? endDate, bool? isRead, String? inCategory, String? withName, int offset = 0, int limit = 100}) → Future< BuiltList< Notification> > -
Retrieves Notifications from the backend. Optionally filters by
time window
fromDatetoendDate, whether the notificationisReador if it isinCategoryorwithName. Pagination is supplied viaoffsetandlimit. -
markAllAsRead(
) → Future< bool> -
Marks all the user Notification as read and publish clear update on
the unread notifications Stream. Returns
trueon success andfalseon error. -
markAsRead(
{required Notification notification}) → Future< Notification> -
Marks one
Notificationas read and publish the modified notification on the unread notifiations Stream -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited