$new static method

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

Creates a new instance of $Directionality from args

Implementation

static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
  return $Directionality.wrap(Directionality(
    key: args[0]?.$value,
    textDirection: args[1]?.$value ?? TextDirection.ltr,
    child: args[2]?.$value,
  ));
}