dispose method
Dispose any resources used by this sink
Implementation
@override
Future<void> dispose() async {
_isDisposed = true;
_batchTimer?.cancel();
// Flush any remaining entries
if (_batch.isNotEmpty) {
await _flushBatch();
}
_httpClient.close();
}