copy function

void copy(
  1. Uint8List source,
  2. int start,
  3. int end,
  4. Uint8List destination,
)

Copies the source array into the destination one, starting from the start position and ending at the end position.

Implementation

void copy(Uint8List source, int start, int end, Uint8List destination) {
  var index = 0;
  for (var i = start; i < end; i++) {
    destination[i] = source[index];
    index++;
  }
}