download static method
download file from dropboxpath to local file(filepath).
filepath is local file path. dropboxpath should start with /. callback for monitoring progress : (downloadedBytes, totalExpectedBytes) { } (can be null)
Implementation
static Future download(String dropboxpath, String filepath,
[DropboxProgressCallback? callback]) async {
final key = ++_callbackInt;
_callbackMap[key] = _CallbackInfo(0, callback);
final ret = await _channel.invokeMethod('download',
{'filepath': filepath, 'dropboxpath': dropboxpath, 'key': key});
_callbackMap.remove(key);
return ret;
}