getPriorityForClass method

Priority? getPriorityForClass(
  1. String className
)

Implementation

Priority? getPriorityForClass(String className) {
  var priority = 50 + 10;
  for (final pattern in priorities) {
    priority -= 10;

    if (RegExp(pattern).hasMatch(className)) {
      return Priority(priority);
    }
  }

  return null;
}