cube property
ComponentDefinition<Cube3DComponent>
get
cube
Implementation
static ComponentDefinition<Cube3DComponent>
get cube => _definition<Cube3DComponent>(
type: 'Cube3DComponent',
id: 'cube_3d_7e8d7b54',
create: Cube3DComponent.new,
name: 'Cube',
description: 'A box: width, height and depth.',
icon: Icons.view_in_ar_outlined,
size: [
_size<Cube3DComponent>('width', (c) => c.width, (c, v) => c.width = v),
_size<Cube3DComponent>('height', (c) => c.height, (c, v) => c.height = v),
_size<Cube3DComponent>('depth', (c) => c.depth, (c, v) => c.depth = v),
],
rows: const [
FieldRowHint('Size', {'width': 'W', 'height': 'H', 'depth': 'D'}),
],
);