setOutlineWidth method

  1. @override
bool setOutlineWidth(
  1. double radius
)
override

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

Example:

// Set outline width
bool outlineWidthSuccess = _polylineMapObject!.setOutlineWidth(1.0);
print("Set polyline outline width to 1.0: $outlineWidthSuccess");

Implementation

@override
bool setOutlineWidth(double radius) {
    final _setOutlineWidthFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Uint8 Function(Pointer<Void>, Float),
        int Function(Pointer<Void>, double)
      >('navigine_sdk_flutter_PolylineMapObject_setOutlineWidth__Radius'));
    final __resultHandle = _setOutlineWidthFfi(this.ptr, radius);
    final _result = (__resultHandle != 0);
    exception.checkCallResult();
    return _result;
}