onSelectionChanged property Null safety

ValueChanged<int>? onSelectionChanged
final

Called when the user tapped or clicked on a shape.

The map passes the selected index to the onSelectionChanged callback but does not actually change this value until the parent widget rebuilds the maps with the new value.

Implementation

final ValueChanged<int>? onSelectionChanged;