registerHandler method

void registerHandler(
  1. String actionId,
  2. NotificationActionCallback handler
)

Binds a handler to actionId without changing the definition.

Implementation

void registerHandler(String actionId, NotificationActionCallback handler) {
  _validateId(actionId);
  _handlers[actionId] = handler;
}