ByteArray.merge constructor

ByteArray.merge(
  1. Iterable<ByteArray> arrays
)

Implementation

factory ByteArray.merge(Iterable<ByteArray> arrays) {
  final list = Uint8List.fromList(arrays.expand((e) => e).toList());
  return ByteArray(list);
}