deletePageStateIndex method
Delete page state index
Cal this to ensure page index is reset to 1 for next load
Implementation
Future<void> deletePageStateIndex() async {
Box<int> pageStateBox = await Hive.openBox(boxName);
if (pageStateBox.isNotEmpty) await pageStateBox.delete(key);
}