PolylineBuilder.fromPolyline constructor

PolylineBuilder.fromPolyline(
  1. Polyline? polyline
)

Creates a new polyline builder by copying the parts from the specified Polyline.

The SpatialReference of the new polyline builder will match that of the given Polyline. Use this constructor in workflows that create a modified version of an existing geometry, for example feature or graphic editing workflows. Polylines with curves are supported.

Parameters:

  • polyline — A polyline object.

Implementation

factory PolylineBuilder.fromPolyline(Polyline? polyline) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_PolylineBuilder_createFromPolyline(
        polyline?._handle ?? ffi.nullptr, errorHandler);
  });
  return PolylineBuilder._withHandle(handle);
}