ProtoFirmwareUpgradeConfiguration constructor

ProtoFirmwareUpgradeConfiguration({
  1. Int64? estimatedSwapTimeMs,
  2. bool? eraseAppSettings,
  3. Int64? pipelineDepth,
  4. ProtoFirmwareUpgradeConfiguration_ImageUploadAlignment? byteAlignment,
  5. Int64? reassemblyBufferSize,
  6. ProtoFirmwareUpgradeConfiguration_FirmwareUpgradeMode? firmwareUpgradeMode,
})

Implementation

factory ProtoFirmwareUpgradeConfiguration({
  $fixnum.Int64? estimatedSwapTimeMs,
  $core.bool? eraseAppSettings,
  $fixnum.Int64? pipelineDepth,
  ProtoFirmwareUpgradeConfiguration_ImageUploadAlignment? byteAlignment,
  $fixnum.Int64? reassemblyBufferSize,
  ProtoFirmwareUpgradeConfiguration_FirmwareUpgradeMode? firmwareUpgradeMode,
}) {
  final $result = create();
  if (estimatedSwapTimeMs != null) {
    $result.estimatedSwapTimeMs = estimatedSwapTimeMs;
  }
  if (eraseAppSettings != null) {
    $result.eraseAppSettings = eraseAppSettings;
  }
  if (pipelineDepth != null) {
    $result.pipelineDepth = pipelineDepth;
  }
  if (byteAlignment != null) {
    $result.byteAlignment = byteAlignment;
  }
  if (reassemblyBufferSize != null) {
    $result.reassemblyBufferSize = reassemblyBufferSize;
  }
  if (firmwareUpgradeMode != null) {
    $result.firmwareUpgradeMode = firmwareUpgradeMode;
  }
  return $result;
}