@@ -191,35 +191,35 @@ void main() {
191191 group ('getInt/setInt' , () {
192192 test ('get from initial load' , () {
193193 final globalSettings = eg.globalStore (intGlobalSettings: {
194- IntGlobalSetting .placeholderIgnore : 1 ,
194+ IntGlobalSetting .lastVisitedAccountId : 1 ,
195195 }).settings;
196- check (globalSettings).getInt (IntGlobalSetting .placeholderIgnore )
196+ check (globalSettings).getInt (IntGlobalSetting .lastVisitedAccountId )
197197 .equals (1 );
198198 });
199199
200200 test ('set, get' , () async {
201201 final globalSettings = eg.globalStore (intGlobalSettings: {}).settings;
202- check (globalSettings).getInt (IntGlobalSetting .placeholderIgnore )
202+ check (globalSettings).getInt (IntGlobalSetting .lastVisitedAccountId )
203203 .isNull ();
204204
205- await globalSettings.setInt (IntGlobalSetting .placeholderIgnore , 1 );
206- check (globalSettings).getInt (IntGlobalSetting .placeholderIgnore )
205+ await globalSettings.setInt (IntGlobalSetting .lastVisitedAccountId , 1 );
206+ check (globalSettings).getInt (IntGlobalSetting .lastVisitedAccountId )
207207 .equals (1 );
208208
209- await globalSettings.setInt (IntGlobalSetting .placeholderIgnore , 100 );
210- check (globalSettings).getInt (IntGlobalSetting .placeholderIgnore )
209+ await globalSettings.setInt (IntGlobalSetting .lastVisitedAccountId , 100 );
210+ check (globalSettings).getInt (IntGlobalSetting .lastVisitedAccountId )
211211 .equals (100 );
212212 });
213213
214214 test ('set to null -> get returns null' , () async {
215215 final globalSettings = eg.globalStore (intGlobalSettings: {
216- IntGlobalSetting .placeholderIgnore : 1 ,
216+ IntGlobalSetting .lastVisitedAccountId : 1 ,
217217 }).settings;
218- check (globalSettings).getInt (IntGlobalSetting .placeholderIgnore )
218+ check (globalSettings).getInt (IntGlobalSetting .lastVisitedAccountId )
219219 .equals (1 );
220220
221- await globalSettings.setInt (IntGlobalSetting .placeholderIgnore , null );
222- check (globalSettings).getInt (IntGlobalSetting .placeholderIgnore )
221+ await globalSettings.setInt (IntGlobalSetting .lastVisitedAccountId , null );
222+ check (globalSettings).getInt (IntGlobalSetting .lastVisitedAccountId )
223223 .isNull ();
224224 });
225225
@@ -231,45 +231,45 @@ void main() {
231231 final globalSettings = eg.globalStore (intGlobalSettings: {}).settings;
232232 globalSettings.addListener (() => notifiedCount++ );
233233
234- await globalSettings.setInt (IntGlobalSetting .placeholderIgnore , null );
234+ await globalSettings.setInt (IntGlobalSetting .lastVisitedAccountId , null );
235235 check (notifiedCount).equals (0 );
236236 });
237237
238238 test ('10 to 10 -> no update' , () async {
239239 final globalSettings = eg.globalStore (intGlobalSettings: {
240- IntGlobalSetting .placeholderIgnore : 10 ,
240+ IntGlobalSetting .lastVisitedAccountId : 10 ,
241241 }).settings;
242242 globalSettings.addListener (() => notifiedCount++ );
243243
244- await globalSettings.setInt (IntGlobalSetting .placeholderIgnore , 10 );
244+ await globalSettings.setInt (IntGlobalSetting .lastVisitedAccountId , 10 );
245245 check (notifiedCount).equals (0 );
246246 });
247247
248248 test ('null to 10 -> does the update' , () async {
249249 final globalSettings = eg.globalStore (intGlobalSettings: {}).settings;
250250 globalSettings.addListener (() => notifiedCount++ );
251251
252- await globalSettings.setInt (IntGlobalSetting .placeholderIgnore , 10 );
252+ await globalSettings.setInt (IntGlobalSetting .lastVisitedAccountId , 10 );
253253 check (notifiedCount).equals (1 );
254254 });
255255
256256 test ('10 to null -> does the update' , () async {
257257 final globalSettings = eg.globalStore (intGlobalSettings: {
258- IntGlobalSetting .placeholderIgnore : 10 ,
258+ IntGlobalSetting .lastVisitedAccountId : 10 ,
259259 }).settings;
260260 globalSettings.addListener (() => notifiedCount++ );
261261
262- await globalSettings.setInt (IntGlobalSetting .placeholderIgnore , null );
262+ await globalSettings.setInt (IntGlobalSetting .lastVisitedAccountId , null );
263263 check (notifiedCount).equals (1 );
264264 });
265265
266266 test ('10 to 100 -> does the update' , () async {
267267 final globalSettings = eg.globalStore (intGlobalSettings: {
268- IntGlobalSetting .placeholderIgnore : 10 ,
268+ IntGlobalSetting .lastVisitedAccountId : 10 ,
269269 }).settings;
270270 globalSettings.addListener (() => notifiedCount++ );
271271
272- await globalSettings.setInt (IntGlobalSetting .placeholderIgnore , 100 );
272+ await globalSettings.setInt (IntGlobalSetting .lastVisitedAccountId , 100 );
273273 check (notifiedCount).equals (1 );
274274 });
275275 });
0 commit comments