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: "");

  console("getCachedLocale length $origindata");

  return TencentCloudChatIntl.deserializeLocale(origindata);
}