The Dart SDK often contains experimental features, which you can try by passing flags to Dart tools.
Using experiment flags with command-line tools
To use an experiment with Dart SDK command line tools,
pass the corresponding flag to the tool.
For example, to enable the experiments
add those flags to the
$ dart --enable-experiment=super-mixins,no-slow-checks
Using experiment flags with IDEs
To enable experiments related to running or debugging apps in IDEs, edit the launch configuration:
Using experiment flags with the Dart analyzer (command-line and IDE)
To enable experiments affecting analysis,
enable-experiment key in the analysis options file.
Here’s an example of enabling the experiments
analyzer: enable-experiment: - super-mixins - no-slow-checks
- For a complete list of experiments,
see the Dart SDK file
- For information on procedures and expectations for experiment flags, see the documentation of the process for changes that are behind experimental flags.