copyWith method

MDnsState copyWith({
  1. MDnsStatus? status,
  2. List<PtrResourceRecord>? dnsPtrRecords,
  3. Map<SrvResourceRecord, IPAddressResourceRecord>? dnsSrvRecords,
  4. SrvResourceRecord? service,
  5. 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,
  );
}