rotateAroundPoint abstract method

MoveAndRotateResult rotateAroundPoint(
  1. double degree, {
  2. Offset? offset,
  3. String? id,
})

Rotates the map to a decimal degree around a custom screen point, where 0° is North

See rotate to rotate the map around the current map center.

  • offset: allows rotation around a screen-based offset (in normal logical pixels) from the map's center. For example, Offset(100, 100) will mean the point is the 100px down & 100px right from the center.

May cause glitchy movement if rotated against the map's bounds.

id is an internally meaningless attribute, but it is passed through to the emitted MapEventRotate and MapEventMove.

The emitted MapEventRotate.source/MapEventMove.source properties will be MapEventSource.mapController.

The operation was successful if both fields of the resulting record are true.

Implementation

MoveAndRotateResult rotateAroundPoint(
  double degree, {
  Offset? offset,
  String? id,
});