Uint8List sublist(Uint8List list, int start, int end) { return Uint8List.fromList(list.getRange(start, end).toList()); }