OTAProgress constructor

const OTAProgress({
  1. required int deviceAddress,
  2. required OTAState state,
  3. int progressPercent = 0,
  4. int bytesTransferred = 0,
  5. int totalBytes = 0,
  6. String? error,
  7. int? estimatedSecondsRemaining,
})

Implementation

const OTAProgress({
  required this.deviceAddress,
  required this.state,
  this.progressPercent = 0,
  this.bytesTransferred = 0,
  this.totalBytes = 0,
  this.error,
  this.estimatedSecondsRemaining,
});