regex method

FormValidator regex(
  1. String regex
)

Validate that the value matches a regex pattern

Implementation

FormValidator regex(String regex) {
  _addRule(r'regex:' + regex);
  return this;
}