ProtoUpdateStateChanges constructor

ProtoUpdateStateChanges({
  1. ProtoUpdateStateChanges_FirmwareUpgradeState? oldState,
  2. ProtoUpdateStateChanges_FirmwareUpgradeState? newState,
  3. bool? canceled,
})

Implementation

factory ProtoUpdateStateChanges({
  ProtoUpdateStateChanges_FirmwareUpgradeState? oldState,
  ProtoUpdateStateChanges_FirmwareUpgradeState? newState,
  $core.bool? canceled,
}) {
  final $result = create();
  if (oldState != null) {
    $result.oldState = oldState;
  }
  if (newState != null) {
    $result.newState = newState;
  }
  if (canceled != null) {
    $result.canceled = canceled;
  }
  return $result;
}