invoke

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

Validates the provided text to ensure it is not empty.

Return

A ValidationResult indicating the result of the validation.

Parameters

text

The text to be validated.

name

The name or label associated with the text field for error messages.