clear method

  1. @override
Future<void> clear()
override

Async removes all elements from the queue.

Implementation

@override
Future<void> clear() {
  return Future<void>(() => throw UnsupportedError('Unmodifiable operation'));
}