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 fromDate to endDate, whether the notification isRead or if it is inCategory or withName. Pagination is supplied via offset and limit.
markAllAsRead() Future<bool>
Marks all the user Notification as read and publish clear update on the unread notifications Stream. Returns true on success and false on error.
markAsRead({required Notification notification}) Future<Notification>
Marks one Notification as 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