onReply method

void onReply(
  1. String status,
  2. void callback(
    1. PushResponse
    )
)

Associate a callback to be called if and when a reply with the given status is received.

Implementation

void onReply(
  String status,
  void Function(PushResponse) callback,
) {
  _receivers[status].add(callback);
}