cone property

Implementation

static ComponentSchema<Cone3D> get cone => _schema<Cone3D>(
  type: 'Cone3D',
  id: 'cone_3d_562bc28a',
  create: Cone3D.new,
  name: 'Cone',
  description: 'A cone, its tip up.',
  icon: Icons.change_history,
  size: [
    _size<Cone3D>('radius', (c) => c.radius, (c, v) => c.radius = v),
    _size<Cone3D>('height', (c) => c.height, (c, v) => c.height = v),
  ],
  detail: [
    _count<Cone3D>(
      'segments',
      (c) => c.segments,
      (c, v) => c.segments = v,
      3,
      128,
    ),
    _flag<Cone3D>('smooth', (c) => c.smooth, (c, v) => c.smooth = v),
  ],
);