buildPriorities static method

List<num>? buildPriorities(
  1. List? rawData
)

Implementation

static List<num>? buildPriorities(List? rawData) {
  return rawData?.map((e) {
    if (e is int || e is num) return e as num;
    if (e is double) return e.toInt();
    return num.parse(e);
  }).toList();
}