dropLast method

List<E> dropLast(
  1. int count
)

Drop last count items from this list, returning the remainder as a new list.

Implementation

List<E> dropLast(int count) => sublist(0, max(0, length - count));