Uint8List.fromList(
List<int> elements
)

Creates a Uint8List with the same length as the elements list and copies over the elements.