renderPOIList method
Implementation
List<Widget> renderPOIList() {
return poiInfoList.map((item) {
return LocationLstItem(
name: item.name ?? "",
isSelected: item.uid == currentSelectedPOI,
address: item.address,
onClick: () {
setState(() {
currentSelectedPOI = item.uid!;
currentSearchCity = item.city ?? currentSearchCity;
currentCoordinate = item.pt;
currentLocationName = "${item.name}$dividerForDesc${item.address}";
});
mapKey.currentState?.moveMapCenter(item.pt!);
},
);
}).toList();
}