merge method
Merges this
instance with other
using the merger
Function for each byte.
Implementation
Uint8List merge(
Uint8List other, int Function(int a, int b, int index) merger) {
var length = min(this.length, other.length);
var out = Uint8List(length);
for (var i = 0; i < length; ++i) {
var b = merger(this[i], other[i], i);
out[i] = b;
}
return out;
}