$lazy static method

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

Wrapper for the DiagnosticsProperty.lazy constructor

Implementation

static $Value? $lazy(Runtime runtime, $Value? thisValue, List<$Value?> args) {
  return $DiagnosticsProperty.wrap(
    DiagnosticsProperty.lazy(
      args[0]!.$value,
      () {
        return (args[1] as EvalCallable)(runtime, null, [])?.$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,
      expandableValue: args[10]?.$value ?? false,
      allowWrap: args[11]?.$value ?? true,
      allowNameWrap: args[12]?.$value ?? true,
      style: args[13]?.$value ?? DiagnosticsTreeStyle.singleLine,
      level: args[14]?.$value ?? DiagnosticLevel.info,
    ),
  );
}