$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 'subtreeDepth':
      return $int($value.subtreeDepth);
    case 'includeProperties':
      return $bool($value.includeProperties);
    case 'expandPropertyValues':
      return $bool($value.expandPropertyValues);
    case 'additionalNodeProperties':
      return __additionalNodeProperties;
    case 'filterChildren':
      return __filterChildren;
    case 'filterProperties':
      return __filterProperties;
    case 'truncateNodesList':
      return __truncateNodesList;
    case 'delegateForNode':
      return __delegateForNode;
    case 'copyWith':
      return __copyWith;
  }
  throw UnimplementedError(
      'property $identifier not generated for DiagnosticsSerializationDelegate');
}