ValidationRule constructor

const ValidationRule(
  1. ValidationFunction validate,
  2. String errorMessage
)

Creates a ValidationRule with the given validate function and errorMessage.

Implementation

const ValidationRule(this.validate, this.errorMessage);