createCylinder method Null safety

MeshGeometry createCylinder(
  1. num topRadius,
  2. num bottomRadius,
  3. num height,
  4. {int segments = 16,
  5. GeometryGeneratorFlags? flags,
  6. 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);
}