moveToDeadLetter method Null safety

  1. @override
Future moveToDeadLetter(
  1. MessageEnvelope message
)
override

Permanently removes a message from the queue and sends it to dead letter queue.

Important: This method is not supported by MQTT.

  • message a message to be removed. Returns (optional) Future that receives an null for success. Throws error