copyWith method

NetworkAuditData copyWith({
  1. int? id,
  2. DateTime? createdAt,
  3. double? totalDownload,
  4. double? totalUpload,
  5. double? downloadSpeed,
  6. double? uploadSpeed,
  7. bool? isWifi,
  8. bool? isCellular,
  9. bool? isEthernet,
  10. 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,
    );