rotate abstract method

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

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

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