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 = _iconMapObject!.setPriority(2);
print("Set rendering priority to 2: $prioritySuccess");

Implementation

bool setPriority(double priority);