generateImageUrl method
Generates the Street View static image URL
Implementation
String generateImageUrl({
required LatLng position,
required double heading,
required double pitch,
}) {
return 'https://maps.googleapis.com/maps/api/streetview'
'?size=${imageWidth}x$imageHeight'
'&location=${position.latitude},${position.longitude}'
'&heading=$heading'
'&pitch=$pitch'
'&key=$apiKey';
}