onCameraMove method

dynamic onCameraMove(
  1. CameraPosition cameraPosition
)

Implementation

onCameraMove(CameraPosition cameraPosition) {
  if (cameraPosition.target.latitude != 0 &&
      cameraPosition.target.longitude != 0) {
    _currentLocation = currentLocation.copyWith(
      latitude: cameraPosition.target.latitude,
      longitude: cameraPosition.target.longitude,
    );
  }
}