sliceArray method
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);
}