setVisible abstract method

bool setVisible(
  1. bool visible
)

Method is used to specify the visibility of the map object. visible Specifies whether the object is visible (true) or hidden (false). Default: true. Returns true if the operation is successful, false otherwise.

Example:

// Set visibility
bool visibleSuccess = _circleMapObject!.setVisible(true);
print("Set circle visibility to true: $visibleSuccess");

Implementation

bool setVisible(bool visible);