# validateValueForValidationRule static method

Future<List<ValidationErrorMessage>> validateValueForValidationRule(

1. String value,
2. ValidationRule rule

)

## Implementation

    static Future<List<ValidationErrorMessage>> validateValueForValidationRule(String value, ValidationRule rule) async {
      final validationRequest = ValidationRuleValidationRequest(value, rule);
      final validationResultStr = await _NativeValidationInterface.instance.validateValueForValidationRule(jsonEncode(validationRequest));
      return _parseValidationErrorMessages(validationResultStr);
    }