ValidatorOptions constructor

ValidatorOptions({
  1. RegExp? emailRegExp,
  2. RegExp? phoneRegExp,
  3. RegExp? ipv4RegExp,
  4. RegExp? ipv6RegExp,
  5. RegExp? urlRegExp,
})

Implementation

ValidatorOptions({
  RegExp? emailRegExp,
  RegExp? phoneRegExp,
  RegExp? ipv4RegExp,
  RegExp? ipv6RegExp,
  RegExp? urlRegExp,
})  : emailRegExp = emailRegExp ?? _defaultEmailRegExp,
      phoneRegExp = phoneRegExp ?? _defaultPhoneRegExp,
      ipv4RegExp = ipv4RegExp ?? _defaultIpv4RegExp,
      ipv6RegExp = ipv6RegExp ?? _defaultIpv6RegExp,
      urlRegExp = urlRegExp ?? _defaultUrlRegExp;