$new static method

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

Implementation

static $Utf8Decoder $new(
  Runtime runtime,
  $Value? target,
  List<$Value?> args,
) {
  final allowMalformed = args[0]?.$value as bool? ?? false;
  return $Utf8Decoder.wrap(Utf8Decoder(allowMalformed: allowMalformed));
}