launchMaps method
Google Maps'te konumu açar
- string: adres veya "lat,long"
Implementation
Future<bool> launchMaps() async {
if (this == null || this!.isEmpty) return false;
final value = this!.trim();
final uriString = value.contains(',')
? 'https://www.google.com/maps/search/?api=1&query=$value'
: 'https://www.google.com/maps/search/?api=1&query=${Uri.encodeComponent(value)}';
return _safeLaunch(uriString);
}