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