Target file "lib/main.dart" not found code example
Example: flutter change Target file from lib/main.dart to another
flutter run -t lib/other_doc.dart
or
flutter run lib/folderName/other_doc.dart
flutter run -t lib/other_doc.dart
or
flutter run lib/folderName/other_doc.dart