selectedIndex property

int selectedIndex
final

Selects the shape in the given index.

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.

To unselect a shape, set -1 to the MapShapeSublayer.selectedIndex.

Must not be null. Defaults to -1.

See also:

Implementation

final int selectedIndex;