TF-2057 Add event hyper link detail widget

(cherry picked from commit 8974e0ab37c2fa0b9097cae638b983e8600db4b2)
This commit is contained in:
dab246
2023-07-28 02:47:10 +07:00
committed by Dat Vu
parent 89ef803679
commit 2268b18809
7 changed files with 115 additions and 8 deletions
@@ -269,4 +269,20 @@ extension CalendarEventExtension on CalendarEvent {
return '';
}
}
List<String> get videoConferences {
if (extensionFields != null && extensionFields!.mapFields.isNotEmpty) {
final videoConferences = extensionFields!.mapFields['X-OPENPAAS-VIDEOCONFERENCE'];
if (videoConferences != null) {
final videoConferencesNotEmpty = videoConferences
.whereNotNull()
.where((link) => link.isNotEmpty)
.toList();
log('CalendarEventExtension::getListVideoConference: $videoConferencesNotEmpty');
return videoConferencesNotEmpty;
}
}
return [];
}
}