bottom method

List<T> bottom(
  1. int n
)

Returns the n smallest elements in ascending order.

Implementation

List<T> bottom(int n) {
  _checkNonNegativeCount(n);
  return (toList()..sort()).take(n).toList();
}