copyWith method
Implementation
BatteryAuditData copyWith(
{int? id,
DateTime? createdAt,
int? percentage,
bool? isCharging,
BatteryAuditStatus? status,
int? capacity,
bool? isScreenOn}) =>
BatteryAuditData(
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,
);