render method

String render(
  1. DiagnosticsNode node, {
  2. String prefixLineOne = '',
  3. String? prefixOtherLines,
  4. TextTreeConfiguration? parentConfiguration,
})

Renders a node to a String.

Implementation

String render(
  DiagnosticsNode node, {
  String prefixLineOne = '',
  String? prefixOtherLines,
  TextTreeConfiguration? parentConfiguration,
}) {
  if (kReleaseMode) {
    return '';
  } else {
    return _debugRender(
      node,
      prefixLineOne: prefixLineOne,
      prefixOtherLines: prefixOtherLines,
      parentConfiguration: parentConfiguration,
    );
  }
}