mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 10:37:11 -04:00 
			
		
		
		
	* chore: bump dart sdk to 3.8 * chore: make build * make pigeon * chore: format files --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			870 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			870 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:maplibre_gl/maplibre_gl.dart';
 | |
| import 'package:openapi/api.dart';
 | |
| 
 | |
| class MapMarker {
 | |
|   final LatLng latLng;
 | |
|   final String assetRemoteId;
 | |
|   const MapMarker({required this.latLng, required this.assetRemoteId});
 | |
| 
 | |
|   MapMarker copyWith({LatLng? latLng, String? assetRemoteId}) {
 | |
|     return MapMarker(latLng: latLng ?? this.latLng, assetRemoteId: assetRemoteId ?? this.assetRemoteId);
 | |
|   }
 | |
| 
 | |
|   MapMarker.fromDto(MapMarkerResponseDto dto) : latLng = LatLng(dto.lat, dto.lon), assetRemoteId = dto.id;
 | |
| 
 | |
|   @override
 | |
|   String toString() => 'MapMarker(latLng: $latLng, assetRemoteId: $assetRemoteId)';
 | |
| 
 | |
|   @override
 | |
|   bool operator ==(covariant MapMarker other) {
 | |
|     if (identical(this, other)) return true;
 | |
| 
 | |
|     return other.latLng == latLng && other.assetRemoteId == assetRemoteId;
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   int get hashCode => latLng.hashCode ^ assetRemoteId.hashCode;
 | |
| }
 |