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