SpinRequest constructor

SpinRequest({
  1. String? name,
  2. double? angleDeg,
  3. double? degsPerSec,
  4. Struct? extra,
})

Implementation

factory SpinRequest({
  $core.String? name,
  $core.double? angleDeg,
  $core.double? degsPerSec,
  $43.Struct? extra,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (angleDeg != null) {
    $result.angleDeg = angleDeg;
  }
  if (degsPerSec != null) {
    $result.degsPerSec = degsPerSec;
  }
  if (extra != null) {
    $result.extra = extra;
  }
  return $result;
}