$getProperty method

  1. @override
$Value? $getProperty(
  1. Runtime runtime,
  2. String identifier
)

Get a property by identifier on this instance

Implementation

@override
$Value? $getProperty(Runtime runtime, String identifier) {
  switch (identifier) {
    case 'name':
      final _name = $value.name;
      return _name == null ? const $null() : $String(_name);

    case 'showSeparator':
      final _showSeparator = $value.showSeparator;
      return $bool(_showSeparator);

    case 'showName':
      final _showName = $value.showName;
      return $bool(_showName);

    case 'linePrefix':
      final _linePrefix = $value.linePrefix;
      return _linePrefix == null ? const $null() : $String(_linePrefix);

    case 'style':
      final _style = $value.style;
      return _style == null
          ? const $null()
          : $DiagnosticsTreeStyle.wrap(_style);

    case 'level':
      final _level = $value.level;
      return $DiagnosticLevel.wrap(_level);

    case 'emptyBodyDescription':
      final _emptyBodyDescription = $value.emptyBodyDescription;
      return _emptyBodyDescription == null
          ? const $null()
          : $String(_emptyBodyDescription);

    case 'value':
      final _value = $value.value;
      return _value == null ? const $null() : $Object(_value);

    case 'allowWrap':
      final _allowWrap = $value.allowWrap;
      return $bool(_allowWrap);

    case 'allowNameWrap':
      final _allowNameWrap = $value.allowNameWrap;
      return $bool(_allowNameWrap);

    case 'allowTruncate':
      final _allowTruncate = $value.allowTruncate;
      return $bool(_allowTruncate);

    case 'textTreeConfiguration':
      // ignore: invalid_use_of_protected_member
      final _textTreeConfiguration = $value.textTreeConfiguration;
      return _textTreeConfiguration == null
          ? const $null()
          : $TextTreeConfiguration.wrap(_textTreeConfiguration);
    case 'toDescription':
      return __toDescription;

    case 'isFiltered':
      return __isFiltered;

    case 'getProperties':
      return __getProperties;

    case 'getChildren':
      return __getChildren;

    case 'toTimelineArguments':
      return __toTimelineArguments;

    case 'toJsonMap':
      return __toJsonMap;

    case 'toJsonMapIterative':
      return __toJsonMapIterative;

    case 'toStringDeep':
      return __toStringDeep;
  }
  return _superclass.$getProperty(runtime, identifier);
}