takeLast method

Iterable<E> takeLast(
  1. int count
)

Returns the list suffix with count elements. If count is larger than length return the whole list.

Implementation

Iterable<E> takeLast(int count) => getRange(max(length - count, 0), length);