setBearing method

Future<void> setBearing(
  1. double bearing
)

Sets the map's bearing (rotation) in degrees.

0.0 points North, 90.0 points East, etc.

Implementation

Future<void> setBearing(double bearing) async {
  await mapController.animateCamera(CameraUpdate.bearingTo(bearing));
}