how do you get an index from a list by searching for a value?

 int index = user.indexWhere((item) => item["id"] == a);

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top