allUpcomingEvents method
- int? secsFromNow
get all upcoming events, whether I responded or not
Implementation
Future<FfiListCalendarEvent> allUpcomingEvents(int? secsFromNow) {
final tmp1 = secsFromNow;
var tmp0 = 0;
var tmp2 = 0;
var tmp4 = 0;
tmp0 = _box.borrow();
if (tmp1 == null) {
tmp2 = 0;
} else {
tmp2 = 1;
final tmp3 = tmp1;
tmp4 = tmp3;
}
final tmp5 = _api._clientAllUpcomingEvents(tmp0, tmp2, tmp4);
final tmp7 = tmp5;
final ffi.Pointer<ffi.Void> tmp7_0 = ffi.Pointer.fromAddress(tmp7);
final tmp7_1 = _Box(
_api,
tmp7_0,
"__Client_all_upcoming_events_future_drop",
);
tmp7_1._finalizer = _api._registerFinalizer(tmp7_1);
final tmp6 = _nativeFuture(
tmp7_1,
_api.__clientAllUpcomingEventsFuturePoll,
);
return tmp6;
}