ipAddress static method

Validator ipAddress({
  1. bool v4Only = false,
  2. bool v6Only = false,
  3. String? message,
})

Validates standard IPv4 and/or IPv6 addresses.

Implementation

static Validator ipAddress(
        {bool v4Only = false, bool v6Only = false, String? message}) =>
    Validator._()
      ..ipAddress(v4Only: v4Only, v6Only: v6Only, message: message);