cleaned up sloppy ai code
This commit is contained in:
26
lib/model/maps_link_metadata.dart
Normal file
26
lib/model/maps_link_metadata.dart
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user