Returns Uint8List
created from lst
.
Shortcut to avoid constructor duplication.
var bytes = bytesFromList([1, 2, 3]); // [1, 2, 3]
print(bytes.runtimeType); // Uint8List
Source
Uint8List bytesFromList(List<int> lst) => new Uint8List.fromList(lst);