closeBox method

  1. @override
Future<JobDone> closeBox(
  1. String boxName
)
override

Implementation

@override
Future<JobDone> closeBox(String boxName) async {
  try {
    final box = await openBox(boxName);
    await box.compact();
    await box.close();
    return const JobDone();
  } catch (e) {
    throw DatabaseBridgeException(error: e);
  }
}