Channel constructor
Channel({
- String? id,
- Iterable<
UserPresence> ? presences, - UserPresence? self,
- String? roomName,
- String? groupId,
- String? userIdOne,
- String? userIdTwo,
Implementation
factory Channel({
$core.String? id,
$core.Iterable<UserPresence>? presences,
UserPresence? self,
$core.String? roomName,
$core.String? groupId,
$core.String? userIdOne,
$core.String? userIdTwo,
}) {
final _result = create();
if (id != null) {
_result.id = id;
}
if (presences != null) {
_result.presences.addAll(presences);
}
if (self != null) {
_result.self = self;
}
if (roomName != null) {
_result.roomName = roomName;
}
if (groupId != null) {
_result.groupId = groupId;
}
if (userIdOne != null) {
_result.userIdOne = userIdOne;
}
if (userIdTwo != null) {
_result.userIdTwo = userIdTwo;
}
return _result;
}