Lines Matching refs:null
105 ## cl.arkui.2 Addition of undefined and null Support for AppStorage, LocalStorage, and PersistentSt…
113 …**null** and **undefined** as input parameters. The @StorageLink, @StorageProp, @LocalStorageLink,…
115 …null** or **undefined** as the initial or target value, then: In the semantics before change, call…
124 AppStorage.setOrCreate("PropA", null);
125 AppStorage.has("PropA");// Because null and undefined are not supported, false is returned.
147 AppStorage.setOrCreate("PropA", null);
148 AppStorage.has("PropA");// Because null and undefined are supported, true is returned.
157 …Text(this.propA.num.toString()) // propA is initialized with the value null in AppStorage. As a re…
206 1. Do not use **null** or **undefined** to initialize variables. Use meaningful values instead.
208 2. Changing a value to **null** or **undefined** will trigger UI re-render.
210 3. Add a null check to the invoking position.
217 AppStorage.setOrCreate("PropA", null);
218 AppStorage.has("PropA"); // Because null and undefined are supported, true is returned.
223 @StorageLink('PropA') propA: PropA | null | undefined = new PropA();
227 …this.propA?.num.toString())// Check whether the value is null to prevent crashes caused by null an…
229 Button("Set propA to null")
232 this.propA = null;