enough_icalendar 0.2.0 copy "enough_icalendar: ^0.2.0" to clipboard
enough_icalendar: ^0.2.0 copied to clipboard

outdated

icalendar library in pure Dart. Fully compliant with RFC 5545.

example/enough_icalendar_example.dart

import 'package:enough_icalendar/enough_icalendar.dart';

void main() {
  final text = '''BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:19970714T170000Z
ORGANIZER;CN=John Doe:MAILTO:[email protected]
DTSTART:19970714T170000Z
DTEND:19970715T035959Z
SUMMARY:Bastille Day Party
GEO:48.85299;2.36885
END:VEVENT
END:VCALENDAR''';
  final icalendar = VComponent.parse(text) as VCalendar;
  print(icalendar.productId);
  final event = icalendar.children.first as VEvent;
  print(event.summary); // Bastille Day Party
  print(event.start); // 1997-06-14 at 17:00
  print(event.end); // 1997-07-15 at 03:59:59
  print(event.organizer?.commonName); // John Doe
  print(event.organizer?.email); // [email protected]
  print(event.geoLocation?.latitude); // 48.85299
  print(event.geoLocation?.longitude); // 2.36885
}
9
likes
0
points
1.1k
downloads

Publisher

verified publisherenough.de

Weekly Downloads

icalendar library in pure Dart. Fully compliant with RFC 5545.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection

More

Packages that depend on enough_icalendar