tryParse static method
Creates a new IPv4Interface. Like constructor except that this function returns null.
Implementation
static IPv4Interface? tryParse(String addr) {
if (addr.isEmpty) return null;
try {
return IPv4Interface(addr);
} catch (e) {
return null;
}
}