combine static method

Uint8List combine({
  1. required Uint8List a,
  2. required Uint8List b,
})

拼接两个字节数组(返回新数组,不修改入参)。

Implementation

static Uint8List combine({required Uint8List a, required Uint8List b}) {
  return Uint8List.fromList([...a, ...b]);
}