GeoPath constructor

GeoPath([
  1. GeoTransform? transform,
  2. Path? context
])

Creates a new geographic path generator with the default settings.

final path = GeoPath(transform); // for SVG
final path = GeoPath(transform, context); // for canvas

If transform is specified, sets the current transform. If context is specified, sets the current context.

Implementation

GeoPath([GeoTransform? transform, Path? context]) {
  this.transform = transform;
  this.context = context;
}