InitCommand constructor

InitCommand({
  1. int? fwVersion,
  2. int? hwVersion,
  3. Iterable<int>? sdReq,
  4. FwType? type,
  5. int? sdSize,
  6. int? blSize,
  7. int? appSize,
  8. Hash? hash,
  9. bool? isDebug,
  10. Iterable<BootValidation>? bootValidation,
})

Implementation

factory InitCommand({
  $core.int? fwVersion,
  $core.int? hwVersion,
  $core.Iterable<$core.int>? sdReq,
  FwType? type,
  $core.int? sdSize,
  $core.int? blSize,
  $core.int? appSize,
  Hash? hash,
  $core.bool? isDebug,
  $core.Iterable<BootValidation>? bootValidation,
}) {
  final result = create();
  if (fwVersion != null) {
    result.fwVersion = fwVersion;
  }
  if (hwVersion != null) {
    result.hwVersion = hwVersion;
  }
  if (sdReq != null) {
    result.sdReq.addAll(sdReq);
  }
  if (type != null) {
    result.type = type;
  }
  if (sdSize != null) {
    result.sdSize = sdSize;
  }
  if (blSize != null) {
    result.blSize = blSize;
  }
  if (appSize != null) {
    result.appSize = appSize;
  }
  if (hash != null) {
    result.hash = hash;
  }
  if (isDebug != null) {
    result.isDebug = isDebug;
  }
  if (bootValidation != null) {
    result.bootValidation.addAll(bootValidation);
  }
  return result;
}