typical static method

Validator<String> typical({
  1. String? error,
})

Implementation

static Validator<String> typical({String? error}) => (value, context) {
      if (context.resources.typicalPasswordPattern.hasMatch(value)) {
        return (true, null);
      }
      return (false, error ?? context.errors.passwordErrors.typical());
    };