plane property

Implementation

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