$new static method

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

Implementation

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