cleaned up sloppy ai code

This commit is contained in:
2025-11-03 13:29:51 +01:00
parent be171aa4bc
commit db61809939
4 changed files with 39 additions and 129 deletions

View File

@@ -0,0 +1,26 @@
class MapsLinkMetadata {
final String url;
final String placeName;
final String latitude;
final String longitude;
final String address;
final String description;
const MapsLinkMetadata({
required this.url,
this.placeName = '',
this.latitude = '',
this.longitude = '',
this.address = '',
this.description = '',
});
String get coordinates {
if (hasCoordinates) {
return '$latitude, $longitude';
}
return '';
}
bool get hasCoordinates => latitude.isNotEmpty && longitude.isNotEmpty;
}