fromValue static method
Find response code by value
Implementation
static DnsResponseCode? fromValue(int value) {
for (final code in DnsResponseCode.values) {
if (code.value == value) {
return code;
}
}
return null;
}
Find response code by value
static DnsResponseCode? fromValue(int value) {
for (final code in DnsResponseCode.values) {
if (code.value == value) {
return code;
}
}
return null;
}