capsule property

Implementation

static ComponentDefinition<Capsule3DComponent> get capsule =>
    _definition<Capsule3DComponent>(
      type: 'Capsule3DComponent',
      id: 'capsule_3d_e6fcb787',
      create: Capsule3DComponent.new,
      name: 'Capsule',
      description: 'An upright capsule: a cylinder with round ends.',
      icon: Icons.medication_outlined,
      size: [
        _size<Capsule3DComponent>(
          'radius',
          (c) => c.radius,
          (c, v) => c.radius = v,
        ),
        _size<Capsule3DComponent>(
          'height',
          (c) => c.height,
          (c, v) => c.height = v,
        ),
      ],
      detail: [
        _count<Capsule3DComponent>(
          'segments',
          (c) => c.segments,
          (c, v) => c.segments = v,
          3,
          128,
        ),
        _count<Capsule3DComponent>(
          'rings',
          (c) => c.rings,
          (c, v) => c.rings = v,
          1,
          32,
        ),
        _flag<Capsule3DComponent>(
          'smooth',
          (c) => c.smooth,
          (c, v) => c.smooth = v,
        ),
      ],
      hints: const {
        'height': FieldHint(
          label: 'Height',
          description: 'Its whole height, ends included.',
        ),
      },
    );