runningFlutterPubGetSync static method
void
runningFlutterPubGetSync()
Runs flutter pub get at the current working directory to resolve dependencies.
Throws:
- Exception with message
⚠️ Failed to run Flutter pub geton failure.
Implementation
static void runningFlutterPubGetSync() {
try {
Process.runSync('flutter', ['pub', 'get'], runInShell: true);
} catch (_) {
throw Exception('⚠️ Failed to run Flutter pub get');
}
}