removeLast method

IList<T> removeLast([
  1. Output<T>? removedItem
])

Pops and returns the last object in this list.

The list must not be empty.

If you want to recover the removed item, you can pass a mutable removedItem.

Implementation

IList<T> removeLast([Output<T>? removedItem]) => removeAt(length - 1, removedItem);