invoke

operator fun invoke(text: String, name: String): ValidationResult

Validates that a given text is not empty or blank.

Return

A ValidationResult object indicating the success or failure of the validation.

Parameters

text

The text to be validated.

name

The name or description of the text for error messages.