onTerminalLossOfConnection property
This means, the channel has been terminally disconnected and is not even trying to reconnect
Implementation
Function onTerminalLossOfConnection = () async {
(await PendingMessageRepository.getInstance())
.insertWaitingMessages(MessageQueueSupervisor.yieldAll());
};