cloudMessagingInstance function
- @Riverpod(keepAlive: true)
- dynamic ref
A provider for the CloudMessagingService class.
This provider is used to provide the CloudMessagingService class to the rest of the application. It is used to interact with Firebase Cloud Messaging.
Implementation
@Riverpod(keepAlive: true)
FirebaseMessaging cloudMessagingInstance(CloudMessagingInstanceRef ref) =>
FirebaseMessaging.instance;