textTreeConfiguration property

  1. @protected
TextTreeConfiguration? textTreeConfiguration

Returns a configuration specifying how this object should be rendered as text art.

Implementation

@protected
TextTreeConfiguration? get textTreeConfiguration {
  assert(style != null);
  return switch (style!) {
    DiagnosticsTreeStyle.none          => null,
    DiagnosticsTreeStyle.dense         => denseTextConfiguration,
    DiagnosticsTreeStyle.sparse        => sparseTextConfiguration,
    DiagnosticsTreeStyle.offstage      => dashedTextConfiguration,
    DiagnosticsTreeStyle.whitespace    => whitespaceTextConfiguration,
    DiagnosticsTreeStyle.transition    => transitionTextConfiguration,
    DiagnosticsTreeStyle.singleLine    => singleLineTextConfiguration,
    DiagnosticsTreeStyle.errorProperty => errorPropertyTextConfiguration,
    DiagnosticsTreeStyle.shallow       => shallowTextConfiguration,
    DiagnosticsTreeStyle.error         => errorTextConfiguration,
    DiagnosticsTreeStyle.flat          => flatTextConfiguration,

    // Truncate children doesn't really need its own text style as the
    // rendering is quite custom.
    DiagnosticsTreeStyle.truncateChildren => whitespaceTextConfiguration,
  };
}