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

Constructors

TextValidationRule(String? error)
message to show case validations fails
const

Properties

error String?
passed throw constructor to skip localized error
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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