Dart 2.3 for, if and spread support warning message regarding versions
In pubspec.yaml
you can update your environment sdk to get rid of those warnings:
environment:
sdk: ">=2.3.0 <3.0.0"
Press option + return
on the warning and select Update the SDK constraints