$new static method

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

Creates a new instance of $Stack from args

Implementation

static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
  return $Stack.wrap(Stack(
    key: args[0]?.$value,
    alignment: args[1]?.$value ?? AlignmentDirectional.topStart,
    textDirection: args[2]?.$value,
    fit: args[3]?.$value ?? StackFit.loose,
    children: (args[4]?.$reified as List).cast(),
  ));
}