answer method

void answer(
  1. dynamic data
)

create and publish a Message in response to this one. This message must have a non-null resp field. If passing an Exception/Error use StackException to keep the StackTrace on call

Implementation

void answer(dynamic data) {
  var r = resp;
  if (r != null && r != '') {
    publish(r, data: data);
  }
}