unusedWidgetCandidates property

List<String> get unusedWidgetCandidates

Get widgets that might be candidates for removal (unused or rarely used).

Implementation

List<String> get unusedWidgetCandidates {
  final sorted = _widgetCounts.entries.toList()
    ..sort((a, b) => a.value.compareTo(b.value));
  return sorted.take(10).map((e) => e.key).toList();
}