IssuePrioritizer class

Applies RuleRegistry metadata to a FlutterAnalysisResult to produce a prioritized, sorted list of PrioritizedGroup objects.

Responsibilities:

Constructors

IssuePrioritizer()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

countByPriority(List<PrioritizedGroup> groups) Map<IssuePriority, int>
Returns a map of priority → total occurrence count (sum of all issues whose rule maps to that priority).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prioritize(FlutterAnalysisResult result) List<PrioritizedGroup>
Returns a sorted list of PrioritizedGroup for all rules found in result.
topProblems(List<PrioritizedGroup> sorted, {int limit = 10}) List<PrioritizedGroup>
Returns the top limit rules from the sorted list (default 10). Ordering already respects priority-before-count.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited