createPageStateIndex method
Create new page state index
Implementation
Future<void> createPageStateIndex(int pageIndex) async {
Box<int> pageStateBox = await Hive.openBox(boxName);
if (pageStateBox.isEmpty) await pageStateBox.put(key, pageIndex);
}