How can I enable Flutter/Dart language experiments?
You need to create an analysis_options.yaml file in the root of your flutter app and write something like analyzer: enable-experiment: – spread-collections Also make sure to switch to the correct channel where the new feature is included eg (dev, beta or master) flutter channel dev And also make sure you have a recent enough version … Read more