sphere property

Implementation

static ComponentDefinition<Sphere3DComponent> get sphere =>
    _definition<Sphere3DComponent>(
      type: 'Sphere3DComponent',
      id: 'sphere_3d_89734a64',
      create: Sphere3DComponent.new,
      name: 'Sphere',
      description: 'A ball.',
      icon: Icons.circle_outlined,
      size: [
        _size<Sphere3DComponent>(
          'radius',
          (c) => c.radius,
          (c, v) => c.radius = v,
        ),
      ],
      detail: [
        _count<Sphere3DComponent>(
          'segments',
          (c) => c.segments,
          (c, v) => c.segments = v,
          3,
          128,
        ),
        _count<Sphere3DComponent>(
          'rings',
          (c) => c.rings,
          (c, v) => c.rings = v,
          2,
          64,
        ),
        _flag<Sphere3DComponent>(
          'smooth',
          (c) => c.smooth,
          (c, v) => c.smooth = v,
        ),
      ],
    );