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