splitTwo static method

List<Uint8List> splitTwo(
  1. Uint8List input,
  2. int firstLength,
  3. int secondLength
)

Implementation

static List<Uint8List> splitTwo(
    Uint8List input, int firstLength, int secondLength) {
  final first = input.sublist(0, firstLength);
  final second = input.sublist(firstLength, firstLength + secondLength);
  return [first, second];
}