$new static method

$Value? $new(
  1. Runtime runtime,
  2. $Value? thisValue,
  3. List<$Value?> args
)

Wrapper for the DiagnosticsProperty.new constructor

Implementation

static $Value? $new(Runtime runtime, $Value? thisValue, List<$Value?> args) {
  return $DiagnosticsProperty.wrap(
    DiagnosticsProperty(
      args[0]!.$value,
      args[1]!.$value,
      description: args[2]?.$value,
      ifNull: args[3]?.$value,
      ifEmpty: args[4]?.$value,
      showName: args[5]?.$value ?? true,
      showSeparator: args[6]?.$value ?? true,
      defaultValue: args[7]?.$value ?? kNoDefaultValue,
      tooltip: args[8]?.$value,
      missingIfNull: args[9]?.$value ?? false,
      linePrefix: args[10]?.$value,
      expandableValue: args[11]?.$value ?? false,
      allowWrap: args[12]?.$value ?? true,
      allowNameWrap: args[13]?.$value ?? true,
      style: args[14]?.$value ?? DiagnosticsTreeStyle.singleLine,
      level: args[15]?.$value ?? DiagnosticLevel.info,
    ),
  );
}