$new static method

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

Instantiate a new $Text from args

Implementation

static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
  return $Text.wrap(Text(
    args[0]!.$value,
    key: args[1]?.$value,
    style: args[2]?.$value,
  ));
}