copyWith method
MDnsState
copyWith({
- MDnsStatus? status,
- List<
PtrResourceRecord> ? dnsPtrRecords, - Map<
SrvResourceRecord, IPAddressResourceRecord> ? dnsSrvRecords, - SrvResourceRecord? service,
- String? errorMsg,
Implementation
MDnsState copyWith({
MDnsStatus? status,
List<PtrResourceRecord>? dnsPtrRecords,
Map<SrvResourceRecord, IPAddressResourceRecord>? dnsSrvRecords,
SrvResourceRecord? service,
String? errorMsg,
}) {
return MDnsState(
status: status ?? this.status,
dnsPtrRecords: dnsPtrRecords ?? this.dnsPtrRecords,
dnsSrvRecords: dnsSrvRecords ?? this.dnsSrvRecords,
service: service ?? this.service,
errorMsg: errorMsg ?? this.errorMsg,
);
}