JSStringPointer.array constructor

JSStringPointer.array(
  1. List<String> array
)

JSStringRef array

Implementation

JSStringPointer.array(List<String> array)
    : this.count = array.length,
      this.pointer = malloc.call<Pointer>(array.length) {
  for (int i = 0; i < array.length; i++) {
    this.pointer[i] = JSString.fromString(array[i]).pointer;
  }
}