createPageStateIndex method

Future<void> createPageStateIndex(
  1. int pageIndex
)

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);
}