get_Item_BackgroundColor method
Color
get_Item_BackgroundColor(
- T? item
)
Implementation
Color get_Item_BackgroundColor(T? item) {
if (widget.item_BackgroundColor != null) {
if (item != null && item is XEnumDef) {
return item.textColor;
} else {
if (selectedItem_UI == item) {
return Colors.grey[900]!;
} else if (item.toString().toLowerCase().contains(textController.text.toLowerCase())) {
return Colors.grey[900]!;
} else {
return widget.item_BackgroundColor!;
}
}
} else {
return Colors.grey[900]!;
}
}