update dart version flutter code example
Example 1: update flutter
flutter upgrade
Example 2: dart update
C:\> choco upgrade dart-sdk
Example 3: update flutter version
I want to upgrade most latest version. So I used below commands:
flutter channel dev
Flutter has 4 project branches / channels ie stable, master, dev, beta. First
when we install it. flutter install stable channel. If you want to switch :
flutter channel chanel_name
Then donwload that :
flutter upgrade
Example 4: dart update
C:\> choco install dart-sdk
Example 5: flutter change beta fo stabel
$ flutter upgrade