cacheCurrentDeviceKeyBordHeight method

Future<void> cacheCurrentDeviceKeyBordHeight(
  1. double height
)

Implementation

Future<void> cacheCurrentDeviceKeyBordHeight(double height) async {
  if (_box == null || !_inited) {
    console("cacheCurrentDeviceKeyBordHeight _box is null or _inited is false");
    return;
  }
  if (!_box!.isOpen) {
    console("box is not open");
    return;
  }
  String hiveKey = TencentCloudChatCacheKey.currentDeviceKeyboardHeight.name;
  await _box!.put(hiveKey, height.toString());
}