new flutter update code example
Example 1: update flutter
flutter upgrade
Example 2: how to check flutter version
flutter --version
Example 3: flutter update
$ flutter channel
flutter upgrade
flutter --version
$ flutter channel