scoreCanonicalCandidates method Null safety

List<ScoredCandidate> scoreCanonicalCandidates (
  1. Iterable<Library> libraries
)

Implementation

List<ScoredCandidate> scoreCanonicalCandidates(Iterable<Library> libraries) {
  return libraries.map(_scoreElementWithLibrary).toList()..sort();
}