bootpayClose method

void bootpayClose(
  1. BootpayCloseCallback? onClose
)

Implementation

void bootpayClose(BootpayCloseCallback? onClose) {
  if (_debounce?.isActive ?? false) _debounce?.cancel();
  _debounce = Timer(const Duration(milliseconds: 100), () {

    if(isBootpayShow == false) return;
    BootpayPrint("bootpayClose call");
    if (onClose != null) onClose();
    isBootpayShow = false;
    // do something with query
  });
}