ref property

Implementation

JSStaticFunctionRef get ref {
  final pointer = calloc<JSStaticFunction_>(length + 1);
  for (int i = 0; i < length; i++) {
    pointer[i] = elementAt(i);
  }
  pointer[length] = JSStaticFunction_Pointer.alloc().ref;
  return pointer;
}