fromPointer static method
Implementation
static LocationPolygon? fromPointer(Pointer<Void> ptr, {bool needFree = true, bool takeOwnership = true}) {
if (ptr == nullptr) {
return null;
}
final result = LocationPolygonImpl.fromNative(ptr.cast<LocationPolygonNative>().ref, takeOwnership: takeOwnership);
if (needFree) {
malloc.free(ptr);
}
return result;
}