openMaps method
Implementation
@override
Future openMaps({
required double latitude,
required double longitude,
}) async {
String url = 'https://www.google.com/maps/search/?api=1&query=$latitude,$longitude';
final uri = Uri.parse(url);
if (!await canLaunchUrl(uri)) {
throw 'Could not open the map.';
} else {
_launch(uri);
}
}