SubscriptionFunctions class abstract mixin

A mixin that contains functions for subscribing to notification topics.

The functions are used in the CloudMessagingService class. You can call functions from this mixin as follows:

ref.read(cloudMessagingServiceProvider).updateTopicSubscription(topic);
Implementers

Constructors

SubscriptionFunctions()

Properties

hashCode int
The hash code for this object.
no setterinherited
instance FirebaseMessaging
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSignInHandler(UserModel user, Map<String, bool> notificationPreferences) Future<void>
Handles the notification initialization required when a user signs in.
onSignOutHandler(UserModel? user) Future<void>
Unsubscribes from all cloud notifications when a user signs out.
toString() String
A string representation of this object.
inherited
updateTopicSubscription(String topic, {bool enabled = true}) Future<void>
Subscribes or unsubscribes from topic based on the enabled parameter.

Operators

operator ==(Object other) bool
The equality operator.
inherited