$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 'expandableValue':
      final _expandableValue = $value.expandableValue;
      return $bool(_expandableValue);

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

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

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

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

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

    case 'missingIfNull':
      final _missingIfNull = $value.missingIfNull;
      return $bool(_missingIfNull);

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

    case 'propertyType':
      final _propertyType = $value.propertyType;
      return $Object(_propertyType);

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

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

    case 'isInteresting':
      final _isInteresting = $value.isInteresting;
      return $bool(_isInteresting);

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

    case 'valueToString':
      return __valueToString;

    case 'toDescription':
      return __toDescription;

    case 'getProperties':
      return __getProperties;

    case 'getChildren':
      return __getChildren;
  }
  return _superclass.$getProperty(runtime, identifier);
}