custom static method

Insertable<AppUsageAuditData> custom({
  1. Expression<int>? id,
  2. Expression<DateTime>? createdAt,
  3. Expression<String>? date,
  4. Expression<String>? packageName,
  5. Expression<int>? totalTimeVisible,
  6. Expression<int>? totalTimeInForeground,
  7. Expression<int>? totalTimeForegroundServiceUsed,
})

Implementation

static Insertable<AppUsageAuditData> custom({
  Expression<int>? id,
  Expression<DateTime>? createdAt,
  Expression<String>? date,
  Expression<String>? packageName,
  Expression<int>? totalTimeVisible,
  Expression<int>? totalTimeInForeground,
  Expression<int>? totalTimeForegroundServiceUsed,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (createdAt != null) 'created_at': createdAt,
    if (date != null) 'date': date,
    if (packageName != null) 'package_name': packageName,
    if (totalTimeVisible != null) 'total_time_visible': totalTimeVisible,
    if (totalTimeInForeground != null)
      'total_time_in_foreground': totalTimeInForeground,
    if (totalTimeForegroundServiceUsed != null)
      'total_time_foreground_service_used': totalTimeForegroundServiceUsed,
  });
}