ipv4 property
Matches IPv4 addresses in dot-decimal notation.
- Examples (✅ Valid):
192.168.1.1,10.0.0.255 - Examples (❌ Invalid):
256.0.0.1,192.168.1
Use Case: IP address validation in networking configurations or input forms.
Implementation
static final RegExp ipv4 = RegExp(r'^(\d?\d?\d)\.(\d?\d?\d)\.(\d?\d?\d)\.(\d?\d?\d)$');