cylinder property
ComponentSchema<Cylinder3D>
get
cylinder
Implementation
static ComponentSchema<Cylinder3D> get cylinder => _schema<Cylinder3D>(
type: 'Cylinder3D',
id: 'cylinder_3d_0b49d83d',
create: Cylinder3D.new,
name: 'Cylinder',
description: 'An upright cylinder.',
icon: Icons.storage_outlined,
size: [
_size<Cylinder3D>('radius', (c) => c.radius, (c, v) => c.radius = v),
_size<Cylinder3D>('height', (c) => c.height, (c, v) => c.height = v),
],
detail: [
_count<Cylinder3D>(
'segments',
(c) => c.segments,
(c, v) => c.segments = v,
3,
128,
),
_flag<Cylinder3D>('smooth', (c) => c.smooth, (c, v) => c.smooth = v),
],
);