IpValidator constructor

IpValidator({
  1. int version = 4,
  2. RegExp? regex,
  3. String? errorText,
  4. bool checkNullOrEmpty = true,
})

Constructor for the IP address validator.

Implementation

IpValidator({
  this.version = 4,

  /// {@macro ipv4_template}
  /// {@macro ipv6_template}
  this.regex,

  /// {@macro base_validator_error_text}
  super.errorText,

  /// {@macro base_validator_null_check}
  super.checkNullOrEmpty,
});