sliceArray method

ByteData sliceArray(
  1. IntRange indices
)

Returns an array containing elements at indices in the specified indices range.

Implementation

ByteData sliceArray(IntRange indices) {
  if (indices.isEmpty) {
    return ByteData(0);
  }
  return buffer.asByteData(indices.start, indices.length);
}