Stanza.presence constructor
Implementation
factory Stanza.presence({
String? to,
String? from,
String? type,
String? id,
List<XMLNode> children = const [],
Map<String, String>? attributes = const {},
String? xmlns,
}) {
return Stanza(
tag: 'presence',
from: from,
to: to,
id: id,
type: type,
attributes: <String, String>{...attributes!},
children: children,
xmlns: xmlns,
);
}