removeLast method

  1. @override
E removeLast()
override

Pops and returns the last object in this list.

The list must not be empty.

Implementation

@override
E removeLast() {
  var last = this.last;
  removeAt(length - 1);
  return last;
}