ValidationRule constructor
const
ValidationRule(
- ValidationFunction validate,
- String errorMessage
Creates a ValidationRule with the given validate function and errorMessage.
Implementation
const ValidationRule(this.validate, this.errorMessage);