split static method
Implementation
static List<Uint8List> split(
Uint8List input, int firstLength, int secondLength, int thirdLength) {
if (firstLength < 0 ||
secondLength < 0 ||
thirdLength < 0 ||
input.length < firstLength + secondLength + thirdLength) {
throw Exception('Input too small: ${hex.encode(input)}');
}
final first = input.sublist(0, firstLength);
final second = input.sublist(firstLength, firstLength + secondLength);
final third = input.sublist(
firstLength + secondLength, firstLength + secondLength + thirdLength);
return [first, second, third];
}