centerOffsetAnimated method

void centerOffsetAnimated(
  1. TickerProvider vsync,
  2. Offset offset, {
  3. Duration duration = const Duration(milliseconds: 250),
})

Implementation

void centerOffsetAnimated(TickerProvider vsync, Offset offset,
    {Duration duration = const Duration(milliseconds: 250)}) {
  final latLng = camera.screenOffsetToLatLng(offset);
  centerPointAnimated(vsync, latLng, duration: duration);
}