rotate method

  1. @override
void rotate(
  1. double rotation, {
  2. bool animate = false,
  3. Function? onAnimateEnd,
})
override

Rotate the map to a specific value.

rotation target rotation of the map (in degrees) animate set to true to rotate with animation. Default false onAnimateEnd callback function to be called when rotation is finished

Implementation

@override
void rotate(double rotation, {bool animate = false, Function? onAnimateEnd}) {
  map?.rotate(rotation, animate, onAnimateEnd);
}