void fn(int seq, int sub) {
  final SEQ_LENGTH = seq;
  final SUB_LENGTH = sub;

  final s = List.generate(SEQ_LENGTH, (i) => i);

  Map<List<int>, bool> subseqs = {};

  for (var i = 0; i <= SEQ_LENGTH - SUB_LENGTH; i++) {
    final sub = s.sublist(i, i + SUB_LENGTH);

    if (!subseqs.containsKey(sub)) {
      subseqs[sub] = true;
      print(sub);
    }
  }
}
fix this function to print all subsequences of sequence seq with length sub that are unique (not reorders)