running android studio emulator without opening android studio code example
Example 1: Run emulator without Android studio.
emulator -list-avds
emulator -avd Nexus_5X_API_26(emulator name)
Example 2: android studio test dart code
// Online:
https://dartpad.dartlang.org/?null_safety=true
// In Android Studio:
In the files listbox (toolbar, name of file, 'main.dart' for ex), select:
> Edit configurations...
> +
> Dart Command Line App
Add your Dart file (my_project/lib), run.