$new static method

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

Wrapper for the VisualDensity.new constructor

Implementation

static $Value? $new(Runtime runtime, $Value? thisValue, List<$Value?> args) {
  return $VisualDensity.wrap(
    VisualDensity(
      horizontal: args[0]?.$value ?? 0.0,
      vertical: args[1]?.$value ?? 0.0,
    ),
  );
}