createCylinder method Null safety
- num topRadius,
- num bottomRadius,
- num height,
- {int segments = 16,
- GeometryGeneratorFlags? flags,
- List<
GeometryFilter> ? filters}
Implementation
MeshGeometry createCylinder(num topRadius, num bottomRadius, num height,
{int segments = 16,
GeometryGeneratorFlags? flags,
List<GeometryFilter>? filters}) {
_topRadius = topRadius.toDouble();
_bottomRadius = bottomRadius.toDouble();
_height = height.toDouble();
_segments = segments;
return createGeometry(flags: flags, filters: filters);
}