createSphere method

MeshGeometry createSphere(
  1. num radius, {
  2. int latSegments = 16,
  3. int lonSegments = 16,
  4. GeometryGeneratorFlags? flags,
  5. List<GeometryFilter>? filters,
})

Implementation

MeshGeometry createSphere(num radius,
    {int latSegments = 16,
    int lonSegments = 16,
    GeometryGeneratorFlags? flags,
    List<GeometryFilter>? filters}) {
  _radius = radius.toDouble();
  _latSegments = latSegments;
  _lonSegments = lonSegments;

  return createGeometry(flags: flags, filters: filters);
}