cancelUpload method
Cancel an ongoing upload.
Returns true if the upload was successfully cancelled.
Implementation
@override
Future<bool> cancelUpload(String uploadId) async {
try {
final result = await methodChannel.invokeMethod<bool>(
'cancelUpload',
{'uploadId': uploadId},
);
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Failed to cancel upload: ${e.message}');
return false;
}
}