shutdown method
flush 剩余事件 + 释放定时器。调用后 enqueue 静默 no-op。
Implementation
Future<void> shutdown() async {
_closed = true;
_flushTimer?.cancel();
_flushTimer = null;
await flush();
if (_inFlight != null) await _inFlight;
_dio.close(force: true);
}