void saveLocally(ID id, dynamic value, bool isSavedLocally) { if (!isSavedLocally) return; getBox.then((box) => box.put(id, value)); }