getPriorityForGroup method
Implementation
int? getPriorityForGroup(String group) {
var priority = 50;
final keys = groups.keys.toList();
final index = keys.indexOf(group);
if (index == -1) {
return null;
}
return priority - (index * 10);
}