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 = _iconMapObject!.setCollisionEnabled(true);
print("Enabled collision detection for icon: $collisionSuccess");
Implementation
bool setCollisionEnabled(bool enabled);