removeAttendeeWithEmail method

AttendeeProperty? removeAttendeeWithEmail(
  1. String email
)

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;
}