takeLast method

Iterable<String> takeLast(
  1. int count
)

Takes the last count elements from the iterable.

Implementation

Iterable<String> takeLast(int count) {
  return toList().reversed.take(count).toList().reversed;
}