registerNotificationHandler method

void registerNotificationHandler(
  1. String method,
  2. NotificationHandler handler
)

Register a handler for incoming notifications with a specific method.

Implementation

void registerNotificationHandler(String method, NotificationHandler handler) {
  _notificationHandlers[method] = handler;
}