basic models

This commit is contained in:
2026-06-09 11:02:06 +02:00
parent 5f71330a4b
commit 3b130fb59d
3 changed files with 48 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import 'latlng.dart';
class Location {
final String? _address;
final LatLng? _coordinates;
Location({this._address, this._coordinates});
Location.fromAddress({required this._address}) : _coordinates = null;
Location.fromCoordinates({required this._coordinates}) : _address = null;
String get address => _address ?? '';
LatLng get coordinates => _coordinates ?? LatLng.empty();
}