stairs property

Implementation

static ComponentSchema<Stairs3D> get stairs => _schema<Stairs3D>(
  type: 'Stairs3D',
  id: 'stairs_3d_bc0b192f',
  create: Stairs3D.new,
  name: 'Stairs',
  description: 'A flight of solid steps rising towards +Z.',
  icon: Icons.stairs_outlined,
  size: [
    _size<Stairs3D>('width', (c) => c.width, (c, v) => c.width = v),
    _size<Stairs3D>('height', (c) => c.height, (c, v) => c.height = v),
    _size<Stairs3D>('depth', (c) => c.depth, (c, v) => c.depth = v),
  ],
  detail: [
    _count<Stairs3D>('steps', (c) => c.steps, (c, v) => c.steps = v, 1, 64),
  ],
  rows: const [
    FieldRowHint('Size', {'width': 'W', 'height': 'H', 'depth': 'D'}),
  ],
);