toPointer static method

Pointer<Void> toPointer(
  1. IndoorLevel? val
)

Implementation

static ffi.Pointer<ffi.Void> toPointer(IndoorLevel? val) {
  if (val == null) {
    return ffi.nullptr;
  }
  final result = malloc.call<IndoorLevelNative>();
  result.ref = toNative(val);

  return result.cast();
}