reply method
Creates a reply for this component.
Subclasses have to implement this when they override canReply. Compare canReply
Implementation
@override
VComponent reply(AttendeeProperty attendee,
{VComponent? parent, String? comment}) {
final event = VEvent(parent: parent);
if (comment != null) {
event.comment = comment;
}
if (sequence != null) {
event.sequence = sequence;
}
event.organizer = organizer;
event.uid = uid;
event.properties.add(attendee);
final delegatedFrom = attendee.delegatedFrom;
if (delegatedFrom != null) {
final delegator =
attendees.firstWhereOrNull((a) => a.uri == delegatedFrom);
if (delegator != null) {
event.properties.add(delegator);
}
}
event.timeStamp = DateTime.now();
event.requestStatus = '2.0;Success';
return event;
}