We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93221cd commit 79a5624Copy full SHA for 79a5624
lib/src/downloader.dart
@@ -383,7 +383,7 @@ class FlutterDownloader {
383
///
384
/// {@end-tool}
385
386
- static registerCallback(DownloadCallback callback, int stepSize) {
+ static registerCallback(DownloadCallback callback, {int stepSize = 10}) {
387
assert(_initialized, 'FlutterDownloader.initialize() must be called first');
388
389
final callbackHandle = PluginUtilities.getCallbackHandle(callback);
0 commit comments