isUploadComplete method

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

Checks if an upload task has completed.

taskId The ID of the upload task to check.

Returns true if the upload is complete, false otherwise.

Implementation

@override
Future<bool> isUploadComplete(String taskId) async {
  try {
    return await _channel.invokeMethod('isUploadComplete', {
          'task_id': taskId,
        }) ??
        false;
  } on PlatformException {
    return false;
  }
}