modules/notifications/notifications library

Classes

Notification
A notification users receive.
NotificationsDatasource
Fetches the user's notifications.
NotificationsList
Displays all notifications of the user.
NotificationsModule
Module responsible for the notifications feature.
NotificationsRepository
UI state control for notifications.
NotificationWidget
Renders a given notification.

Enums

NotificationType
The type of a Notification.

Functions

inviteAcceptedMessage(BuildContext context, Notification notification) Widget
Message builder for NotificationType.inviteAccepted.
inviteActions(BuildContext context, Notification notification) FutureOr<List<(String, FutureOr<void> Function()?)>>
Actions builder for NotificationType.invite.
inviteDeclinedMessage(BuildContext context, Notification notification) Widget
Message builder for NotificationType.inviteDeclined.
inviteMessage(BuildContext context, Notification notification) Widget
Message builder for NotificationType.invite.
newUserMessage(BuildContext context, Notification notification) Widget
Message builder for NotificationType.newUser.
noActions(BuildContext context, Notification notification) FutureOr<List<(String, FutureOr<void> Function())>>
Actions builder for types that have no actions.
planLeftMessage(BuildContext context, Notification notification) Widget
Message builder for NotificationType.planLeft.
planRemovedMessage(BuildContext context, Notification notification) Widget
Message builder for NotificationType.planRemoved.