getCurrentDeviceKeyBordHeight method

double getCurrentDeviceKeyBordHeight()

Implementation

double getCurrentDeviceKeyBordHeight() {
  if (_box == null || !_inited) {
    console("getCurrentDeviceKeyBordHeight _box is null or _inited is false");
    return 280;
  }
  if (!_box!.isOpen) {
    console("box is not open");
    return 280;
  }

  String hiveKey = TencentCloudChatCacheKey.currentDeviceKeyboardHeight.name;
  String originData = _box!.get(hiveKey, defaultValue: "280");
  return double.parse(originData);
}