rotate method
Sets the map rotation to a certain degrees angle (in decimal).
Optionally provide id
attribute and if you listen to mapEventStream
later a MapEventRotate event will be emitted (if rotate was success)
with same id
attribute. Event's source attribute will be
MapEventSource.mapController.
returns true
if rotate was success (it won't be success if rotate is
same as the old rotate)
Implementation
@override
bool rotate(double degree, {String? id}) {
return _state.rotate(degree, id: id, source: MapEventSource.mapController);
}