TaskEvent constructor

const TaskEvent({
  1. required TaskState state,
  2. int? bytesReceived,
  3. int? totalBytes,
  4. Object? error,
})

Implementation

const TaskEvent(
    {required this.state, this.bytesReceived, this.totalBytes, this.error});