capsule property

ComponentSchema<Capsule3D> get capsule

Implementation

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