moveAndRotate method

MoveAndRotateResult moveAndRotate(
  1. LatLng center,
  2. double zoom,
  3. double degree, {
  4. required MapEventSource source,
  5. String? id,
})

Implementation

MoveAndRotateResult moveAndRotate(LatLng center, double zoom, double degree,
    {required MapEventSource source, String? id}) {
  final moveSucc =
      move(center, zoom, id: id, source: source, callOnMoveSink: false);
  final rotateSucc =
      rotate(degree, id: id, source: source, callOnMoveSink: false);

  if (moveSucc || rotateSucc) {
    _onMoveSink.add(null);
  }

  return MoveAndRotateResult(moveSucc, rotateSucc);
}