isIPv4 property
bool
get
isIPv4
Checks if the string is a valid IPv4 address.
Implementation
bool get isIPv4 => regex(
r'^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$');