I have searched a lot. But couldn't get what I am looking for.
I have a list with inner lists as its objects
final posts = [ ["My First Post, "myPostId"], ["My SecondPost, "myPostId2"]..... ];
So, I want to check if the list contains the word First.
It is working with 1D lists like
posts = ["My First Post", "My Second Post"];
posts.where((p)=>p.contain("First")....
//gives the correct result
But what's the way to get from the inner lists.
Actual Code
final suggestion = query.isEmpty?courseNameList:courseNameList
.where((test)=>test.contains(query.toLowerCase())).toList();
Thanks in advance!