move abstract method

bool move(
  1. LatLng center,
  2. double zoom, {
  3. String? id,
})

Moves the map to a specific location and zoom level

Optionally provide id attribute and if you listen to mapEventStream later a MapEventMove event will be emitted (if move was success) with same id attribute. Event's source attribute will be MapEventSource.mapController.

returns true if move was success (for example it won't be success if navigating to same place with same zoom or if center is out of bounds and MapOptions.slideOnBoundaries isn't enabled)

Implementation

bool move(LatLng center, double zoom, {String? id});