bootpayClose method

void bootpayClose(
  1. BootpayCloseCallback? onClose
)

Implementation

void bootpayClose(BootpayCloseCallback? onClose) {

  print("DebounceCloseController called : ${_debounce?.isActive}, ${isDebounceShow}");
  if (_debounce?.isActive ?? false) _debounce?.cancel();
  _debounce = Timer(const Duration(milliseconds: 100), () {

    if(isDebounceShow == false) return;
    if (onClose != null) {
      onClose();
    }
    isDebounceShow = false;
    isFireCloseEvent = true;
    // BootpayPrint("DebounceCloseController bootpayClose : ${isFireCloseEvent}");
    // do something with query
  });
}