NotificationService class

Constructors

NotificationService.new({required FirebaseMessaging messaging, required FlutterLocalNotificationsPlugin localPlugin})

Properties

hashCode int
The hash code for this object.
no setterinherited
localPlugin FlutterLocalNotificationsPlugin
final
messaging FirebaseMessaging
final
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

init({required GlobalKey<NavigatorState> navigatorKey}) Future<void>
Initialize everything — call this in main() AFTER Firebase.initializeApp()
Safely navigate to screen
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribeToTopic(String topic) Future<void>
Optional: Subscribe to FCM topic
toString() String
A string representation of this object.
inherited
unsubscribeFromTopic(String topic) Future<void>
Optional: Unsubscribe from FCM topic

Operators

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