notifications library

Classes

VoNotificationController
VoNotificationControllerProvider
VoNotificationService
Handles /notifications/devices API calls.
VoNotificationState
VoNotificationStorage
Persists notification permission prompt and last registered FCM token.
VoNotificationStorageProvider
VoRegisterDevicePayload

Extensions

VoNotificationStatePatterns on VoNotificationState
Adds pattern-matching-related methods to VoNotificationState.
VoRegisterDevicePayloadPatterns on VoRegisterDevicePayload
Adds pattern-matching-related methods to VoRegisterDevicePayload.

Functions

requestNotificationPermission(BuildContext context, {bool force = false, String? title, String? description, String? enableButtonLabel, String? notNowButtonLabel, WidgetBuilder? bodyBuilder, NotificationPermissionFooterBuilder? footerBuilder}) → Future<void>
Shows a pre-permission explainer, then requests system permission and registers the FCM token when the user accepts.
voNotificationStorage(Ref ref) → VoNotificationStorage

Typedefs

NotificationPermissionFooterBuilder = Widget Function(BuildContext context, {required dynamic onEnablePressed(), required dynamic onNotNowPressed()})