bridgeScript constant
String
const bridgeScript
Implementation
static const bridgeScript = '''
window.PaymentWidgetFlutterSDK = {
message : {
postMessage : function(_message) {
window.flutter_inappwebview.callHandler('PaymentWidgetFlutterSDK', _message);
}
},
error : {
postMessage : function(error) {
window.flutter_inappwebview.callHandler('PaymentWidgetFlutterSDK', JSON.stringify({
name: 'error',
params: JSON.parse(error)
}));
}
}
}
''';