flush method
Silences the output and empties the queue, including chunks enqueued but not yet handed to the platform. state settles to XAudioSinkState.idle; no drained event follows.
Implementation
@override
Future<void> flush() {
_generation++;
return _enqueue(() async {
if (!supported) return;
try {
await _methods.invokeMethod<void>('flush');
} on PlatformException catch (e) {
throw XAudioSinkException(e.code, e.message);
}
});
}