noSpecialChars static method

Validator noSpecialChars({
  1. String allowed = '',
  2. String? message,
})

Ensures there are no special characters.

FormRules.noSpecialChars(allowed: '-_').build()

Implementation

static Validator noSpecialChars({String allowed = '', String? message}) =>
    Validator._()..noSpecialChars(allowed: allowed, message: message);