TextValidationRule class abstract
interface for the queen validation rules
extend it and implement :
isValid
to override the validation logic
translatedError
return translated message from nations
nationsKey
return key to use with nations
- Implementers
- Contains
- ContainsAny
- EndsWith
- IsArabicNum
- IsBool
- IsDate
- IsDateAfter
- IsDateMillis
- IsEgyptianPhone
- IsEmail
- IsEmpty
- IsFacebookUrl
- IsHexColor
- IsHindiNum
- IsIn
- IsInstagramUrl
- ISKsaPhone
- IsLtrLanguage
- IsNotIn
- IsNumber
- IsOptional
- IsPort
- IsRequired
- IsRTLLanguage
- IsUrl
- IsYoutubeUrl
- Match
- MaxLength
- MaxValue
- MinLength
- MinValue
- NotContains
- NotContainsAny
- QRule
- RegExpRule
- StartsWith
Constructors
- TextValidationRule(String? error)
-
message to show case validations fails
const
Properties
Methods
-
isValid(
String input) → bool - return a bool Either valid or NOT
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited