isDownloadComplete method
Checks if a download task has completed.
taskId The ID of the download task to check.
Returns true if the download is complete, false otherwise.
Implementation
@override
Future<bool> isDownloadComplete(String taskId) async {
try {
return await _channel.invokeMethod('isDownloadComplete', {
'task_id': taskId,
}) ??
false;
} on PlatformException {
return false;
}
}