setAngle abstract method

bool setAngle(
  1. double angle
)

Method is used to specify the rotation angle of the icon. angle Rotation angle in degrees. Default: 0. Returns true if the operation is successful, false otherwise.

Example:

// Set icon rotation angle
bool angleSuccess = _iconMapObject!.setAngle(45.0);
print("Set icon rotation angle to 45 degrees: $angleSuccess");

Implementation

bool setAngle(double angle);