AppUsageAuditCompanion.insert constructor

AppUsageAuditCompanion.insert({
  1. Value<int> id = const Value.absent(),
  2. Value<DateTime> createdAt = const Value.absent(),
  3. required String date,
  4. required String packageName,
  5. Value<int> totalTimeVisible = const Value.absent(),
  6. Value<int> totalTimeInForeground = const Value.absent(),
  7. Value<int> totalTimeForegroundServiceUsed = const Value.absent(),
})

Implementation

AppUsageAuditCompanion.insert({
  this.id = const Value.absent(),
  this.createdAt = const Value.absent(),
  required String date,
  required String packageName,
  this.totalTimeVisible = const Value.absent(),
  this.totalTimeInForeground = const Value.absent(),
  this.totalTimeForegroundServiceUsed = const Value.absent(),
})  : date = Value(date),
      packageName = Value(packageName);