toString method

  1. @override
String toString ({DiagnosticLevel minLevel: DiagnosticLevel.debug })
override

Returns a string representation of this object.

Implementation

@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.debug}) {
  // Avoid wrapping lines.
  final TextTreeRenderer renderer = TextTreeRenderer(wrapWidth: 4000000000);
  return diagnostics.map((DiagnosticsNode node) => renderer.render(node).trimRight()).join('\n');
}