download method

  1. @override
void download({
  1. required String url,
  2. required dynamic success(
    1. Uint8List fileBytes
    ),
  3. required dynamic failure(
    1. String error
    ),
})

Implements the download method defined in IDSDownloadInterface. Delegates the actual download logic to the private.

Implementation

@override
void download({
  required String url,
  required Function(Uint8List fileBytes) success,
  required Function(String error) failure,
}) {
  IDSDownloadService.instance.downloadFile(url, success, failure);
}