isDownloadComplete method

  1. @override
Future<bool> isDownloadComplete(
  1. String taskId
)
override

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;
  }
}