tryParse static method
Creates a new IPv4Network. Like constructor except that this function returns null.
Implementation
static IPv4Network? tryParse(String addr, {bool strict = true}) {
if (addr.isEmpty) return null;
try {
return IPv4Network(addr, strict: strict);
} catch (e) {
return null;
}
}