TaskProgressUpdate constructor

const TaskProgressUpdate(
  1. Task task,
  2. double progress, [
  3. int expectedFileSize = -1,
  4. double networkSpeed = -1,
  5. Duration timeRemaining = const Duration(seconds: -1),
])

Implementation

const TaskProgressUpdate(
  super.task,
  this.progress, [
  this.expectedFileSize = -1,
  this.networkSpeed = -1,
  this.timeRemaining = const Duration(seconds: -1),
]);