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