removeAttendeeWithUri method

AttendeeProperty? removeAttendeeWithUri(
  1. Uri uri
)
inherited

Removes the attendee with the given uri, returning it when it was found.

Implementation

AttendeeProperty? removeAttendeeWithUri(Uri uri) {
  final match = properties.firstWhereOrNull(
      (p) => p is AttendeeProperty && p.uri == uri) as AttendeeProperty?;
  if (match != null) {
    properties.remove(match);
  }
  return match;
}