# value property

String? value
final

Optional component name

### Example:

    @Component('customValidator')
    class CustomValidator implements Validator<String> {
      @override
      List<ValidationError> validate(String value, String fieldName) {
        final errors = <ValidationError>[];

        if (value.contains('forbidden')) {
          errors.add(ValidationError(
            field: fieldName,
            message: 'Value contains forbidden content',
            rejectedValue: value,
            validationType: 'CustomValidator',
          ));
        }

        return errors;
      }

      @override
      bool supports(Type type) => type == String;
    }

## Implementation

    final String? value;