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