Reset to default
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
removeWhere allows to do that:
replytile.removeWhere((item) => item.id == '001')
See also List Dartdoc
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);
//For removing specific item from a list with the attribute value replytile.removeWhere((item) => item.id == '001') //Remove item by specifying the position of the item in the list replytile.removeAt(2) //Remove last item from the list replytile.removeLast() //Remove a range of items from the list replytile.removeRange(2,5)
This also works
if you have a generic list
List<int> sliderBtnIndex = ;//Your list sliderBtnIndex.remove(int.tryParse(index)); //remove