push method

  1. @override
Future<void> push(
  1. Uint8List payload,
  2. Map<String, String> metadata,
  3. String topic, {
  4. Context? ctx,
})
override

Push Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions. When using a capacity-restricted queue, this method is generally preferable to add, which can fail to insert an element only by throwing an exception.

Implementation

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