static Pointer<Void> getNativePtr(Wifi? obj) { if (obj == null) return Pointer<Void>.fromAddress(0); return (obj as Wifi$Impl).ptr; }