# ConditionalOnDart constructor

const ConditionalOnDart(

1. String version, [
2. VersionRange range = const VersionRange()

])

The `ConditionalOnDart` annotation in Jetleaf allows developers to conditionally process a class or method based on the Dart SDK version.

This annotation evaluates the Dart runtime version using the `OnDartCondition` condition class. Developers can specify a specific version or a range of versions that must match for the annotated element to be processed.

### Usage Example:

    @ConditionalOnDart('3.1.0')
    class ModernFeaturePod {
      // This pod will only be loaded if the Dart SDK version matches 3.1.0
    }

## Implementation

    const ConditionalOnDart(this.version, [this.range = const VersionRange()]);