setCollisionEnabled abstract method
Method is used to enable or disable collision detection for the icon.
enabled Specifies whether collision detection is enabled (true) or disabled (false). Default: false.
Returns true if the operation is successful, false otherwise.
Example:
// Enable collision detection
bool collisionSuccess = _dottedPolylineMapObject!.setCollisionEnabled(
true,
);
print(
"Enabled collision detection for dotted polyline: $collisionSuccess",
);
Implementation
bool setCollisionEnabled(bool enabled);