toPointer static method

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

Implementation

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

  return result.cast();
}