$new static method

$Value? $new(
  1. Runtime runtime,
  2. $Value? target,
  3. List<$Value?> 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,
    clipBehavior: args[4]?.$value ?? Clip.hardEdge,
    children: (args[5]?.$reified as List?)?.cast() ?? const <Widget>[],
  ));
}