Coordinate with a unique ID and optional popup text and color.
TxMapMarker
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| lat | double | required | Latitude in degrees. |
| lng | double | required | Longitude in degrees. |
| id | Object | required | Unique stable ID. |
| text | String? | null | Text to display. |
| color | Color? | null | Display color. |
import 'package:tecexpress/tecexpress.dart';
Future<void> example() async {
const marker = TxMapMarker(52.52, 13.405, id: 'berlin', text: 'Berlin');
print(marker.text);
}