getValueIndexList method
Get the current value index from items list
Implementation
int? getValueIndexList() {
if (value != null && items.isNotEmpty) {
int index = items.indexWhere((element) => element.value == value!.value);
return index > -1 ? index : null;
}
return null;
}