Skip to content

Commit 79a5624

Browse files
nimisismarkst
authored andcommitted
The second parameter stepSize is now optional
1 parent 93221cd commit 79a5624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/downloader.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ class FlutterDownloader {
383383
///
384384
/// {@end-tool}
385385
///
386-
static registerCallback(DownloadCallback callback, int stepSize) {
386+
static registerCallback(DownloadCallback callback, {int stepSize = 10}) {
387387
assert(_initialized, 'FlutterDownloader.initialize() must be called first');
388388

389389
final callbackHandle = PluginUtilities.getCallbackHandle(callback);

0 commit comments

Comments
 (0)