setValidationFunction method Null safety

void setValidationFunction(
  1. String key,
  2. dynamic value(
    1. bool
    )
)

Implementation

void setValidationFunction(String key, Function(bool) value) {
  _setGeneralFunction(
      validationFunctions, key, value, ControlType.VALIDATION_FUNCTION);
}