custom static method

Insertable<CalendarEvent> custom({
  1. Expression<int>? id,
  2. Expression<int>? portalId,
  3. Expression<DateTime>? start,
  4. Expression<DateTime>? end,
  5. Expression<bool>? allDay,
  6. Expression<String>? title,
  7. Expression<String>? place,
  8. Expression<String>? content,
  9. Expression<String>? ownerName,
  10. Expression<String>? creatorName,
})

Implementation

static Insertable<CalendarEvent> custom({
  Expression<int>? id,
  Expression<int>? portalId,
  Expression<DateTime>? start,
  Expression<DateTime>? end,
  Expression<bool>? allDay,
  Expression<String>? title,
  Expression<String>? place,
  Expression<String>? content,
  Expression<String>? ownerName,
  Expression<String>? creatorName,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (portalId != null) 'portal_id': portalId,
    if (start != null) 'start': start,
    if (end != null) 'end': end,
    if (allDay != null) 'all_day': allDay,
    if (title != null) 'title': title,
    if (place != null) 'place': place,
    if (content != null) 'content': content,
    if (ownerName != null) 'owner_name': ownerName,
    if (creatorName != null) 'creator_name': creatorName,
  });
}