IqStanza constructor

IqStanza(
  1. String? id,
  2. IqStanzaType type
)

Implementation

IqStanza(String? id, IqStanzaType type) {
  name = 'iq';
  this.id = id;
  this.type = type;
  addAttribute(
      XmppAttribute('type', type.toString().split('.').last.toLowerCase()));
}