2015-02-09 55 views

回答

2
import 'dart:io'; 
void main() { 
    Process.run('pub', ['get'], 
     runInShell: true, 
     workingDirectory: 'dirWherePubspec.yaml_is') 
    .then((ProcessResult results) { 
    // ... 
    }); 
} 

或可替代Process.start(...)

+1

谢谢:)冈特 – willsquire 2015-02-09 23:08:36

相关问题