runningFlutterPubGetSync 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
void runningFlutterPubGetSync() {
try {
runner.runSync('flutter', ['pub', 'get'], runInShell: true);
} catch (_) {
throw Exception('⚠️ Failed to run Flutter pub get');
}
}