copyWith method
NetworkAuditData
copyWith(
{ - int? id,
- DateTime? createdAt,
- double? totalDownload,
- double? totalUpload,
- double? downloadSpeed,
- double? uploadSpeed,
- bool? isWifi,
- bool? isCellular,
- bool? isEthernet,
- Value<String?> wifiSsid = const Value.absent(),
})
Implementation
NetworkAuditData copyWith(
{int? id,
DateTime? createdAt,
double? totalDownload,
double? totalUpload,
double? downloadSpeed,
double? uploadSpeed,
bool? isWifi,
bool? isCellular,
bool? isEthernet,
Value<String?> wifiSsid = const Value.absent()}) =>
NetworkAuditData(
id: id ?? this.id,
createdAt: createdAt ?? this.createdAt,
totalDownload: totalDownload ?? this.totalDownload,
totalUpload: totalUpload ?? this.totalUpload,
downloadSpeed: downloadSpeed ?? this.downloadSpeed,
uploadSpeed: uploadSpeed ?? this.uploadSpeed,
isWifi: isWifi ?? this.isWifi,
isCellular: isCellular ?? this.isCellular,
isEthernet: isEthernet ?? this.isEthernet,
wifiSsid: wifiSsid.present ? wifiSsid.value : this.wifiSsid,
);