setOnReferralHandler method

void setOnReferralHandler (
  1. Function callback
)

Implementation

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

  _channel.invokeMethod("setOnReferralHandler");

  this._onReferralHandler = callback;
}