onDecline method

TikiSdk onDecline(
  1. dynamic onDecline(
    1. Offer,
    2. LicenseRecord?
    )
)

Sets the callback function for a declined offer

he onDecline() event is triggered when the user declines the licensing offer. This happens on dismissal of the flow or when "Back Off" is selected.

Implementation

TikiSdk onDecline(Function(Offer, LicenseRecord?) onDecline) {
  _onDecline = onDecline;
  return this;
}