context property

GeoPathContext? context

Context used to render the path.

If the context is null, then the path generator will return an SVG path string; if the context is non-null, the path generator will instead call methods on the specified context to render geometry. The context must created with the following subset of the CanvasRenderingContext2D API:

  • context.moveTo(x, y)
  • context.lineTo(x, y)
  • context.arc(x, y, radius, startAngle, endAngle)
  • context.closePath()

Implementation

GeoPathContext? get context => _context;
void context=(GeoPathContext? _)

Implementation

set context(GeoPathContext? _) {
  _sink = (_context = _) != null ? _! : GeoPathString();
}