Capsule constructor

Capsule({
  1. double? radiusMm,
  2. double? lengthMm,
})

Implementation

factory Capsule({
  $core.double? radiusMm,
  $core.double? lengthMm,
}) {
  final $result = create();
  if (radiusMm != null) {
    $result.radiusMm = radiusMm;
  }
  if (lengthMm != null) {
    $result.lengthMm = lengthMm;
  }
  return $result;
}