Converts an X of Dart struct wrapper into an allocated Pointer<T> pointer.
X
Pointer<T>
Pointer<T> Function([X?, String?]) valueFunc;