getRouterMap static method
Implementation
static Future<Map> getRouterMap() async {
try {
var router = await Hive.box<dynamic>(Cc.EXCEPTION_DATABASE).toMap();
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();
return router;
}
}