saveToFile method Null safety
- String path
Saves this PubSpec to a pubspec.yaml at the given
path
.
The path
must be a directory not a file name.
Implementation
void saveToFile(String path) {
waitForEx<dynamic>(pubspec.save(Directory(dirname(path))));
}