$new static method

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

Creates a new instance of $FittedBox from args

Implementation

static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
  return $FittedBox.wrap(FittedBox(
    key: args[0]?.$value,
    fit: args[1]?.$value ?? BoxFit.contain,
    alignment: args[2]?.$value ?? Alignment.center,
    clipBehavior: args[3]?.$value ?? Clip.none,
    child: args[4]?.$value,
  ));
}