animateCamera method

  1. @override
Future<void> animateCamera({
  1. required LatLng latLng,
  2. double? bearing,
  3. double? zoom,
  4. double? tilt,
})
override

Implementation

@override
Future<void> animateCamera(
    {required LatLng latLng,
    double? bearing,
    double? zoom,
    double? tilt}) async {
  final args = <String, dynamic>{
    'latitude': latLng.latitude,
    'longitude': latLng.longitude,
    'bearing': bearing,
    'zoom': zoom,
    'tilt': tilt
  };
  await methodChannel.invokeMethod('animateCamera', args);
}