how to update your flutter sdk code example
Example 1: update flutter
flutter upgrade
Example 2: flutter sdk update
$ flutter upgrade
Example 3: flutter update
$ flutter channel
flutter upgrade
$ flutter upgrade
$ flutter channel