$new static method

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

Creates a new instance of $Align from args

Implementation

static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
  return $Align.wrap(Align(
    key: args[0]?.$value,
    alignment: args[1]?.$value ?? Alignment.center,
    widthFactor: args[2]?.$value,
    heightFactor: args[3]?.$value,
    child: args[4]?.$value,
  ));
}