setOnShowNotificationHandler method

void setOnShowNotificationHandler(
  1. dynamic callback
)

Implementation

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

  _channel.invokeMethod("setOnShowNotificationHandler");

  this._onShowNotificationHandler = callback;
}