Hi Christian,
Greetings from Syncfusion. We have analyzed your query based
on the provided error stack trace and we suspect that you have initialized the
selected index value as a type late for initially no data was selected. This is
the reason you get the issue, so we recommend you avoid initializing the
selected index type as late and assign the selected index value -1 which
denotes no data was selected at initial rendering. We have attached the demo
sample below for your reference.
Sample: https://flutter.syncfusion.com/#/maps/shape-layer/selection
Code link: https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/maps/shape_layer/selection/selection.dart
Regards,
Yuvaraj.