AddGeometry<T extends Geometry> typedef

AddGeometry<T extends Geometry> = void Function(T geometry, {String? name})

A function to add geometry to some collection with an optional name.

Implementation

typedef AddGeometry<T extends Geometry> = void Function(
  T geometry, {
  String? name,
});