takeLast method

List<E> takeLast(
  1. int count
)

Take count items from the end of this list, returning the result as a list.

Implementation

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