copyWith method
AssetReport
copyWith({
- String? assetReportId,
- String? clientReportId,
- DateTime? dateGenerated,
- double? daysRequested,
- AssetReportUser? user,
- List<
AssetReportItem> ? items,
Implementation
AssetReport copyWith(
{String? assetReportId,
String? clientReportId,
DateTime? dateGenerated,
double? daysRequested,
AssetReportUser? user,
List<AssetReportItem>? items}) {
return AssetReport(
assetReportId: assetReportId ?? this.assetReportId,
clientReportId: clientReportId ?? this.clientReportId,
dateGenerated: dateGenerated ?? this.dateGenerated,
daysRequested: daysRequested ?? this.daysRequested,
user: user ?? this.user,
items: items ?? this.items);
}