isIp static method
check field is ip address
Implementation
static bool isIp(Map<String, dynamic> data, dynamic value, String args) {
RegExp ipAddressRegex = RegExp(
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]?)$',
);
return ipAddressRegex.hasMatch(value.toString());
}