AskValidator class abstract
Base class for all AskValidators. You can add your own by extending this class.
Constructors
- AskValidator()
-
allows us to make validators consts.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
String line) → String - This method is called by ask to valiate the string entered by the user. It should throw an AskValidatorException if the input is invalid. The validate method is called when the user hits the enter key. If the validation succeeds the validated line is returned.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited