fromPointer static method
Implementation
static MasstransitConnector? fromPointer(ffi.Pointer<ffi.Void> ptr,
{core.bool needFree = true}) {
if (ptr == ffi.nullptr) {
return null;
}
final result = MasstransitConnectorImpl.fromNative(
ptr.cast<MasstransitConnectorNative>().ref);
if (needFree) {
malloc.free(ptr);
}
return result;
}