getExcluded method

List<int> getExcluded()

Implementation

List<int> getExcluded() {
  List<int> returnList = [];

  if (excluded != null) {
    List<String> splittedNumStrs = excluded!.split(new RegExp(r"\|+"));
    splittedNumStrs.forEach((str) {
      int? num = int.tryParse(str);
      if (num != null) {
        returnList.add(num);
      }
    });
  }

  return returnList;
}