cloudMessagingInstance function

  1. @Riverpod(keepAlive: true)
FirebaseMessaging cloudMessagingInstance(
  1. 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;