validateFocused method

bool validateFocused(
  1. String? validator(
    1. int index
    )
)

Validates the focused item.

Returns true if the focused item is valid, false otherwise.

Implementation

bool validateFocused(String? Function(int index) validator) {
  return validateOne(_focusedIndex, validator);
}