Gets the error message for an item (null if no error).
String? getError(int index) => index >= 0 && index < _errors.length ? _errors[index] : null;