- @override
Returns a string representation of this object.
Source
@override
String toString() {
String errors = '$errorCount ${errorCount == 1 ? "error" : "errors"}';
String warnings =
'$warningCount ${warningCount == 1 ? "warning" : "warnings"}';
return [errors, warnings].join(', ');
}