check dart dependency flutter version code example
Example 1: how to check flutter version
flutter --version
Example 2: pubspec.yaml flutter
dependencies:
url_launcher: ^5.4.0 # Good, any 5.4.x version where x >= 0 works.
image_picker: '5.4.3' # Not so good, only version 5.4.3 works.