onReply method
Associate a callback to be called if and when a reply with the given status is received.
Implementation
void onReply(String status, ReceiverCallback callback) {
(_receivers[status] ??= []).add(callback);
}
Associate a callback to be called if and when a reply with the given status is received.
void onReply(String status, ReceiverCallback callback) {
(_receivers[status] ??= []).add(callback);
}