toSequences method

List<SqfEntitySequenceBase>? toSequences()

Convert defined constant sequences into List

Implementation

List<SqfEntitySequenceBase>? toSequences() {
  print('toSequences begin');
  if (model.sequences == null) {
    return null;
  }
  final sequenceList = <SqfEntitySequenceBase>[];
  for (final seq in model.sequences!) {
    final modelSeq = toSequence(seq);
    print('modelSeq: $modelSeq');
    if (modelSeq != null) {
      sequenceList.add(modelSeq);
    }
  }
  return sequenceList;
}