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