void main() { List<int> numberList = [1, 2, 3, 4, 5]; numberList.removeLast(); print(numberList); }
The above code will pop the last element from the list.
0 Comments