setOnNotificationOpenedHandler method

void setOnNotificationOpenedHandler (
  1. Function callback
)

Implementation

void setOnNotificationOpenedHandler(Function callback) {
  if (callback == null) {
    print(
        "Callback parameter in setOnNotificationOpenedHandler method is required.");
    return;
  }

  _channel.invokeMethod("setOnNotificationOpenedHandler");

  this._onNotificationOpenedHandler = callback;
}