How to remove specific items from a list?

Solution 1:

removeWhere allows to do that:

replytile.removeWhere((item) => item.id == '001')

See also List Dartdoc

Solution 2:

In your case this works:

replytile.removeWhere((item) => item.id == '001');

For list with specific datatype such as int, remove also works.Eg:

List id = [1,2,3];
id.remove(1);