setPrivateWidgetEvent method
Implementation
void setPrivateWidgetEvent(BuildContext context) {
_context = context;
this.onFullSizeScreen = (data) {
print("onFullSizeScreen called");
pushInternalWebView();
};
this.onRevertScreen = (data) {
if(_context == null) return;
Navigator.pop(_context!);
};
this.onCloseWidget = () {
print("onCloseWidget call : ${paymentResult.toString()}");
if(_context == null) return;
if(paymentResult != BootpayPaymentResult.NONE) {
Navigator.pop(_context!);
}
// Navigator.pop(_context!);
if(this.onClose != null) this.onClose!();
// 위젯을 다시 호출
// if(paymentResult != BootpayPaymentResult.NONE) {
// this._controller.loadRequest(Uri.parse(WIDGET_URL));
// }
paymentResult = BootpayPaymentResult.NONE;
};
}