notifications library
Classes
- VoNotificationController
- VoNotificationControllerProvider
- VoNotificationService
-
Handles
/notifications/devicesAPI 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.
Properties
Functions
-
requestNotificationPermission(
BuildContext context, {bool force = false, String? title, String? description, String? enableButtonLabel, String? notNowButtonLabel, WidgetBuilder? bodyBuilder, }) → Future< void> - Shows a pre-permission explainer, then requests system permission and registers the FCM token when the user accepts.
-
voNotificationStorage(
Ref ref) → VoNotificationStorage