static Location? fromOptionalPtr(Pointer<Void> ptr) { if (ptr.address == 0) return null; return Location$Impl.fromNativePtr(ptr); }