animateCamera method
Implementation
Future<void> animateCamera(
{required LatLng latLng,
double? bearing,
Duration duration = const Duration(milliseconds: 1000),
double? zoom,
double? tilt}) async {
return _methodChannel.invokeMethod(MethodChannelEvent.animateCamera, {
'latitude': latLng.latitude,
'longitude': latLng.longitude,
'bearing': bearing,
'zoom': zoom,
'tilt': tilt,
'duration': duration.inMilliseconds
});
}