allocate static method

Implementation

static Pointer<JSStaticValue> allocate(JSStaticValueDelegate delegate) {
  final Pointer<JSStaticValue> result = calloc.call(1);
  result.ref
    ..name = delegate.name
    ..getProperty = delegate.getProperty ?? nullptr
    ..setProperty = delegate.setProperty ?? nullptr
    ..attributes = delegate.attributes;
  return result;
}