ByteData fromList(List<int> input)

Source

static ByteData fromList(List<int> input) {
  if (input is Uint8List) {
    return fromUint8List(input);
  }
  return fromUint8List(new Uint8List.fromList(input));
}