setOnShowNotificationHandler method

void setOnShowNotificationHandler (
  1. Function callback
)

Implementation

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

  _channel.invokeMethod("setOnShowNotificationHandler");

  this._onShowNotificationHandler = callback;
}