ProcessTask constructor

ProcessTask({
  1. required int processed,
  2. required int total,
  3. required TaskState state,
  4. Uint8List? bytes,
})

Implementation

ProcessTask(
    {required this.processed,
    required this.total,
    required this.state,
    this.bytes}) {
  percentage = processed / total;
}