ack method

Future<void> ack(
  1. String id
)

Acknowledges successful delivery by deleting the stored file.

Implementation

Future<void> ack(String id) async {
  final dir = await _ensureDir();
  final file = File('${dir.path}/$id.json');
  if (file.existsSync()) {
    await file.delete();
  }
}