# isOptional method

bool isOptional()

Whether the property is optional. Defaults to `false`.

When true, the property value may be null or missing without causing configuration errors. When false, the property is considered required.

Example:

    final pv = PropertyValue('debug', true);
    pv.optional = true;
    print(pv.optional); // true

## Implementation

    bool isOptional() => _optional;