setPriority abstract method

bool setPriority(
  1. double priority
)

Method is used to specify the priority of the icon. priority The priority value for rendering or interaction. Default: max. Returns true if the operation is successful, false otherwise.

Example:

// Set rendering priority
bool prioritySuccess = _dottedPolylineMapObject!.setPriority(1);
print("Set dotted polyline rendering priority to 1: $prioritySuccess");

Implementation

bool setPriority(double priority);