onCancel method

JavascriptChannel onCancel(
  1. BuildContext context
)

Implementation

JavascriptChannel onCancel(BuildContext context) {
  return JavascriptChannel(
      name: 'BootpayCancel',
      onMessageReceived: (JavascriptMessage message) {
        BootpayPrint('BootpayCancel');
        c.requestType.value = BioConstants.REQUEST_TYPE_NONE;
        if (this.widget.onCancel != null)
          this.widget.onCancel!(message.message);
      });
}