copyWith method

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

Implementation

AppUsageAuditData copyWith(
        {int? id,
        DateTime? createdAt,
        String? date,
        String? packageName,
        int? totalTimeVisible,
        int? totalTimeInForeground,
        int? totalTimeForegroundServiceUsed}) =>
    AppUsageAuditData(
      id: id ?? this.id,
      createdAt: createdAt ?? this.createdAt,
      date: date ?? this.date,
      packageName: packageName ?? this.packageName,
      totalTimeVisible: totalTimeVisible ?? this.totalTimeVisible,
      totalTimeInForeground:
          totalTimeInForeground ?? this.totalTimeInForeground,
      totalTimeForegroundServiceUsed: totalTimeForegroundServiceUsed ??
          this.totalTimeForegroundServiceUsed,
    );