getCachedLocale method

Locale? getCachedLocale()

Implementation

Locale? getCachedLocale() {
  if (_box == null || !_inited) {
    console("getCachedLocale _box is null or _inited is false");
    return null;
  }
  if (!_box!.isOpen) {
    console("box is not open");
    return null;
  }
  String hiveKey = TencentCloudChatCacheKey.locale.name;

  String originData = _box!.get(hiveKey, defaultValue: "");
  return TencentCloudChatIntl.deserializeLocale(originData);
}