peek method

  1. @override
Future<Uint8List?> peek(
  1. String topic, {
  2. Context? ctx,
})
override

Peek Retrieves, but does not remove, the head of this queue, or returns None if this queue is empty.

Implementation

@override
Future<Uint8List?> peek(String topic, {Context? ctx}) async {
  return await _h.invoke(this, _methods['peek']!, [topic], ctx);
}