NotificationsRepository class

Constructors

NotificationsRepository(NotificationsProvider _notificationsProvider)

Properties

getUnreadedStream → Stream<bool>
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasUnreaded → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkUnread({bool isRefresh = false}) → Future<Either<BaseException, bool>>
getNotification(String id) → Future<Either<BaseException, NotificationModel>>
getNotifications({NotificationsFilterModel? filter, PaginationModel? pagination}) → Future<Either<BaseException, List<NotificationModel>>>
getSettings() → Future<Either<BaseException, NotificationSettingsModel>>
markAll() → Future<Either<BaseException, void>>
markAs(String notificationId) → Future<Either<BaseException, void>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateSettings({required List<PushSettingModel> settings}) → Future<Either<BaseException, void>>

Operators

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