removeAttendeeWithEmail method
Removes the attendee with the given email
, returning it when it was found.
Implementation
AttendeeProperty? removeAttendeeWithEmail(String email) {
final match = properties.firstWhereOrNull(
(p) => p is AttendeeProperty && p.email == email) as AttendeeProperty?;
if (match != null) {
properties.remove(match);
}
return match;
}