copyWith method

BatteryAuditCompanion copyWith({
  1. Value<int>? id,
  2. Value<DateTime>? createdAt,
  3. Value<int>? percentage,
  4. Value<bool>? isCharging,
  5. Value<BatteryAuditStatus>? status,
  6. Value<int>? capacity,
  7. Value<bool>? isScreenOn,
})

Implementation

BatteryAuditCompanion copyWith(
    {Value<int>? id,
    Value<DateTime>? createdAt,
    Value<int>? percentage,
    Value<bool>? isCharging,
    Value<BatteryAuditStatus>? status,
    Value<int>? capacity,
    Value<bool>? isScreenOn}) {
  return BatteryAuditCompanion(
    id: id ?? this.id,
    createdAt: createdAt ?? this.createdAt,
    percentage: percentage ?? this.percentage,
    isCharging: isCharging ?? this.isCharging,
    status: status ?? this.status,
    capacity: capacity ?? this.capacity,
    isScreenOn: isScreenOn ?? this.isScreenOn,
  );
}