readPageStateIndex method

Future<int?> readPageStateIndex()

Read page state index

Implementation

Future<int?> readPageStateIndex() async {
  Box<int> pageStateBox = await Hive.openBox(boxName);
  return pageStateBox.get(key, defaultValue: 1);
}