### Create Pull Request with gh CLI Source: https://github.com/emmaguoguo33/test1/blob/main/myprompt.md Example of using the GitHub CLI (`gh`) to create a pull request with a dynamic title and body containing a summary report. ```Bash gh pr create --title "Prepare release for Dart DART_VERSION / Flutter FLUTTER_VERSION" --body "" ``` -------------------------------- ### Get Dart SDK Version Source: https://github.com/emmaguoguo33/test1/blob/main/myprompt.md Command to retrieve the current Flutter SDK version information in machine-readable JSON format, specifically to extract the Dart SDK version. ```Bash flutter --version --machine ``` -------------------------------- ### Update Environment to Beta Channel Source: https://github.com/emmaguoguo33/test1/blob/main/myprompt.md Commands to switch the local Git repository to the 'beta' branch and update the local Flutter SDK to the 'beta' channel. ```Bash git checkout beta git pull origin beta ``` ```Bash flutter channel beta flutter upgrade ``` -------------------------------- ### Run Dart Analysis and Formatting Source: https://github.com/emmaguoguo33/test1/blob/main/myprompt.md Commands to perform static analysis on Dart code, ensuring it meets fatal info and warning criteria, and to format the code according to Dart standards. ```Bash dart analyze --fatal-infos --fatal-warnings ``` ```Bash dart format . ``` -------------------------------- ### Update pubspec.yaml SDK Constraint Source: https://github.com/emmaguoguo33/test1/blob/main/myprompt.md Demonstrates how to read a project's pubspec.yaml file, find the 'environment.sdk' key, and update its value to a new Dart SDK version constraint. ```Dart # Assuming pubspec.yaml is parsed into a Map called pubspec if (pubspec.containsKey('environment') && pubspec['environment'] is Map) { var environment = pubspec['environment'] as Map; environment['sdk'] = '^DART_VERSION-0'; // Replace DART_VERSION with the actual version } // Then save the modified pubspec content. ``` -------------------------------- ### Run Flutter Tests Source: https://github.com/emmaguoguo33/test1/blob/main/myprompt.md Command to execute all tests within a Flutter project, excluding specific projects like 'material_3_demo'. Assumes a 'test' directory exists. ```Bash flutter test ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.