getCacheSize static method

Future<int> getCacheSize({
  1. List<NIMDirCacheFileType>? fileType,
})

Implementation

static Future<int> getCacheSize({List<NIMDirCacheFileType>? fileType}) async {
  var res = await NimCore.instance.settingsService
      .getSizeOfDirCache(fileType ?? defaultSDKFileType, 0, 0);
  if (res.isSuccess) {
    return res.data!;
  }
  return 0;
}