removeAt()
- This method is a remove data from index using a data to index .
void main()
{
var iterable = [1, 2, 3, 4, 5].where((element) => element.isEven);
var list = iterable.toList();
list.removeAt(1);
print(list);
}
[2]
Exited.
void main()
{
var iterable = [1, 2, 3, 4, 5].where((element) => element.isEven);
var list = iterable.toList();
list.removeAt(1);
print(list);
}
[2]
Exited.