$new static method

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

Create a new $StringBuffer with the given content.

Implementation

static $StringBuffer $new(
    Runtime runtime, $Value? target, List<$Value?> args) {
  return $StringBuffer.wrap(StringBuffer(args[0]?.$value ?? ""));
}