handlePushNotification method

void handlePushNotification(
  1. NotificationData data
)

Implementation

void handlePushNotification(NotificationData data) {
  log('try to handlePushNotification: $data');
  final String? code = data['code'];
  for (final pushNotification in pushNotifications) {
    if (pushNotification.code.contains(code)) {
      pushNotification.onNotification(data);
    }
  }
}