queryFileCached method
Check whether a file is cached.
Supported version: 2.0.0 and above
Description: Check whether a file is cached locally based on the file ID.
Business scenario: Check whether a file is cached.
Calling time: Call this API after initWithConfig.
Related APIs: cacheFile
@param fileID ID of the file to be queried @return Map
Implementation
Future<Map?> queryFileCached({
required String fileID,
}) async {
var map = await _channel.invokeMethod('queryFileCached', {
'fileID': fileID,
});
return map;
}