compact method

Future<void> compact({
  1. bool isCancelled()?,
  2. void onProgress(
    1. double progress
    )?,
})

Reduce Removed Record List

Or DB Clean Up

if (removeList.isEmpty) Not Do Anything.

Implementation

Future<void> compact({
  bool Function()? isCancelled,
  void Function(double progress)? onProgress,
}) async {
  await _indexedDB.compact(isCancelled: isCancelled, onProgress: onProgress);
}