Future<int> clear() async { try { return await _box.clear(); } catch (e) { throw HiveException(e); } }