DataTask constructor

DataTask(
  1. int id,
  2. DataTaskType type,
  3. String localPath,
  4. Int64 offset,
  5. String serverAddr,
  6. FileInfo fileInfo, {
  7. bool shouldTruncate = false,
  8. int bufferSize = 4096,
})

Implementation

DataTask(this.id, this.type, this.localPath, this.offset, this.serverAddr,
    this.fileInfo,
    {this.shouldTruncate = false, this.bufferSize = 4096})
    : startAt = DateTime.now();