validate method
A function that should be implemented and it represents
the validation of the value. It should return Boolean
indicating
that the value passed pass the validation or not.
Implementation
@override
bool validate(String value) {
return (value.length >= _min && value.length < _max) ||
(value.length > _min && value.length <= _max);
}