Validates the provided data against this rule.
data
Returns true if the data is valid, false otherwise. Subclasses must implement this method.
true
false
@override bool validate(data) { return customValidation(data); }