getRouterString static method

Future<String> getRouterString()

Implementation

static Future<String> getRouterString() async {
  try {
    var router =
        await Hive.box<dynamic>(Cc.EXCEPTION_DATABASE).toMap().toString();
    return router;
  } catch (err) {
    await Hive.openBox<dynamic>(Cc.EXCEPTION_DATABASE);
    await Hive.box<dynamic>(Cc.EXCEPTION_DATABASE).clear();

    var router =
        await Hive.box<dynamic>(Cc.EXCEPTION_DATABASE).toMap().toString();
    return router;
  }
}