addEvent2Cal static method

Future<bool> addEvent2Cal(
  1. Event event
)

Add an Event (object) to user's default calendar.

Implementation

static Future<bool> addEvent2Cal(Event event) async {
  return _channel
      .invokeMethod<bool?>('add2Cal', event.toJson())
      .then((value) => value ?? false);
}