onError method

JavascriptChannel onError(
  1. BuildContext context
)

Implementation

JavascriptChannel onError(BuildContext context) {
  return JavascriptChannel(
      name: 'BootpayError',
      onMessageReceived: (JavascriptMessage message) {
        if (this.widget.onError != null)
          this.widget.onError!(message.message);
      });
}