isBroadcast static method

bool isBroadcast(
  1. Message msg
)

Implementation

static bool isBroadcast(Message msg) {
  if (msg.receiver.isBroadcast) {
    return true;
  }
  // check exposed group
  Object? overtGroup = msg['group'];
  if (overtGroup == null) {
    return false;
  }
  ID? group = ID.parse(overtGroup);
  return group != null && group.isBroadcast;
}