DownloadProgressSession constructor

DownloadProgressSession({
  1. String initialLabel = '',
  2. int stepCount = 3,
})

Implementation

DownloadProgressSession({String initialLabel = '', int stepCount = 3})
    : _stepCount = stepCount,
      notifier = ValueNotifier<DownloadProgressState>(
        DownloadProgressState(
          totalTasks: 0,
          doneTasks: 0,
          currentLabel: initialLabel,
          fraction: 0.0,
          stepIndex: 0,
          stepCount: stepCount,
        ),
      );