getAtIndices method

List<T> getAtIndices(
  1. List<int> indices
)

Get elements at specified indices

Implementation

List<T> getAtIndices(List<int> indices) {
  return indices
      .where((index) => index >= 0 && index < length)
      .map((index) => this[index])
      .toList();
}