NotificationServices class

Constructors

NotificationServices()

Properties

body String
getter/setter pair
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icon String
getter/setter pair
message String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
getter/setter pair

Methods

firebaseInit(BuildContext context, GlobalKey<NavigatorState> navigatorKey) → void
getData(String? icon, String? title, String? message, String body) → void
getDeviceToken() Future<String?>
handleMessage(BuildContext context, GlobalKey<NavigatorState> navigatorKey, RemoteMessage message) → void
initLocalNotification(BuildContext context, GlobalKey<NavigatorState> navigatorKey, RemoteMessage message) Future<void>
isTokenRefresh() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestNotificationPermissions() Future<void>
sendPushNotification() Future<void>
sendRegistrationToken() Future<void>
setupInteractMessage(BuildContext context, GlobalKey<NavigatorState> navigatorKey) Future<void>
showNotification(RemoteMessage message) Future<void>
subscribeToTopic(String topic) Future<void>
toString() String
A string representation of this object.
inherited
unsubscribeFromTopic(String topic) Future<void>
updateStatus() Future<void>

Operators

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

Static Methods

backgroundMessage() → void