From d26f3bb9d56571d948f7c9f3f4dc7d9decab9b75 Mon Sep 17 00:00:00 2001 From: David Butler Date: Sun, 23 Aug 2020 10:19:59 +0100 Subject: [PATCH] The second parameter stepSize is now optional --- lib/src/downloader.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/downloader.dart b/lib/src/downloader.dart index 6b1f26d2..101d4773 100644 --- a/lib/src/downloader.dart +++ b/lib/src/downloader.dart @@ -383,7 +383,7 @@ class FlutterDownloader { /// /// {@end-tool} /// - static registerCallback(DownloadCallback callback, int stepSize) { + static registerCallback(DownloadCallback callback, {int stepSize = 10}) { assert(_initialized, 'FlutterDownloader.initialize() must be called first'); final callbackHandle = PluginUtilities.getCallbackHandle(callback);