ExperimentalFeatures class

Resolved opt-in configuration for WWDC26 experimental code generation.

Defaults to everything OFF (none), which reproduces the stable output byte-for-byte. The master switch combines with the per-feature set:

  • master OFF → nothing experimental is emitted, regardless of enabled.
  • master ON with an empty enabled set → every feature is emitted (the "just turn it all on" shorthand).
  • master ON with a non-empty enabled set → only the listed features.

Constructors

ExperimentalFeatures({bool masterEnabled = false, Set<ExperimentalFeature> enabled = const {}})
Creates a configuration. Prefer none for the default.
const

Properties

anyEnabled bool
Whether any experimental output is active at all.
no setter
enabled Set<ExperimentalFeature>
The explicitly selected per-feature flags. An empty set with masterEnabled true means "all features".
final
hashCode int
The hash code for this object.
no setteroverride
masterEnabled bool
The master switch (--experimental-wwdc26).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isEnabled(ExperimentalFeature feature) bool
Whether feature should be emitted under the current configuration.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

none → const ExperimentalFeatures
The default: all experimental generation disabled (stable output).