setWidth abstract method

bool setWidth(
  1. double width
)

Method is used to specify the width of the polyline. width Width of the polyline in pixels. Returns true if the operation is successful, false otherwise.

Example:

// Set polyline width
bool widthSuccess = _polylineMapObject!.setWidth(3.0);
print("Set polyline width to 3.0 pixels: $widthSuccess");

Implementation

bool setWidth(double width);