onSelectNotification method
- String? data
Called when the user taps on a local notification.
Parses the data
payload and logs it.
Implementation
///
/// Parses the [data] payload and logs it.
void onSelectNotification(String? data) {
debugPrint("Local Message Clicked: $data");
if (data?.isNotEmpty ?? false) {
Map<String, dynamic> payload = jsonDecode(data!);
debugPrint("Local Message Clicked: $payload");
}
}