plane property

Implementation

static ComponentDefinition<Plane3DComponent> get plane =>
    _definition<Plane3DComponent>(
      type: 'Plane3DComponent',
      id: 'plane_3d_565609c7',
      create: Plane3DComponent.new,
      name: 'Plane',
      description: 'A flat rectangle on the ground, seen from both sides.',
      icon: Icons.crop_landscape_outlined,
      size: [
        _size<Plane3DComponent>(
          'width',
          (c) => c.width,
          (c, v) => c.width = v,
        ),
        _size<Plane3DComponent>(
          'depth',
          (c) => c.depth,
          (c, v) => c.depth = v,
        ),
      ],
      rows: const [
        FieldRowHint('Size', {'width': 'W', 'depth': 'D'}),
      ],
    );