onSelectNotification method
onSelectNotification Obtains a string payload And perform navigation function
Implementation
Future<dynamic> onSelectNotification(String? payload) async {
if (payload != null) {
debugPrint('notification payload: ' + payload);
}
await Navigator.push(context, pageRoute);
}