I'm experiencing an issue with a custom function designed to perform a case-insensitive partial text search using contains()
. Despite following standard implementation, the function only returns true
when the entire text is entered, failing to detect partial matches. Here's the function:
bool? newCustomFunction( String? textSearchIn, String? textSearchFor, ) { return textSearchIn ?.toLowerCase() .contains(textSearchFor?.toLowerCase() ?? '') ?? false; }
I'am using this custom code to filter view of list view from api get