getSizeOfDirCache method Null safety

Future<NIMResult<int>> getSizeOfDirCache(
  1. List<NIMDirCacheFileType> fileTypes,
  2. int startTime,
  3. int endTime
)

(Only available for Android) Calculate the size of the SDK cache files, for example, image thumbnails of image messages and audio files of audio messages.

fileTypes The file type list
startTime The start time (unit: millisecond). The start time is not limited if the parameter is set to 0.
endTime The end time (unit: millisecond). The end time is not limited if the parameter is set to 0.

Implementation

Future<NIMResult<int>> getSizeOfDirCache(
    List<NIMDirCacheFileType> fileTypes, int startTime, int endTime) {
  return _platform.getSizeOfDirCache(fileTypes, startTime, endTime);
}