showMoney method

void showMoney(
  1. bool rest
)

Implementation

void showMoney(bool rest) {
  if (!widget.gui) {
    return;
  }
  int? size = widget.delegate?.onShowMoney();
  isSoonMoney = size == 0;
  // if (size <= 1) {
  if (size == 0) {
    if (currentDown == 0 || rest) {
      currentDown = (size! + 1) * 60 - currentRate % 60;
    }
  } else {
    currentDown = 0;
  }
  if (size == 1) {
    printLog('通话中费用不足2分钟');
    willSendVideo(8);
    // if (currentRate >= 60 || currentRate < 60 && !call) {
    //   showRechargeDialog(call: false, rest: false, min: '2');
    // }
  } else if (size == 0) {
    printLog('通话中费用不足1分钟');
    willSendVideo(6);
    if (currentRate >= 60) {
      widget.delegate?.onShowMatchWidget(recharge: true);
    }
  }
}