toString method

  1. @override
String toString()
override

Summary string for display.

Implementation

@override
String toString() {
  final errors = countBySeverity[RuleSeverity.error] ?? 0;
  final warnings = countBySeverity[RuleSeverity.warning] ?? 0;
  final infos = countBySeverity[RuleSeverity.info] ?? 0;
  final hints = countBySeverity[RuleSeverity.hint] ?? 0;

  return 'AnalysisResult('
      '$filesAnalyzed files, '
      '$errors errors, '
      '$warnings warnings, '
      '$infos info, '
      '$hints hints)';
}