setIsSelectedBySelectedList method
void
setIsSelectedBySelectedList(})
function to check if current item data, same as prev selected data
Implementation
void setIsSelectedBySelectedList(List<T> selectedList,
{required bool Function(T, T) compareSelectedData}) {
if (selectedList.isEmpty) return;
isSelected = checkIsDataOnSelectedList(data, selectedList,
compareSelectedData: compareSelectedData);
}