addLibraryExport method

void addLibraryExport(
  1. String exportUri
)

Adds exportUri as an export to the main library file of this project.

e.g. `addLibraryExport('package:aqueduct/aqueduct.dart')

Implementation

void addLibraryExport(String exportUri) {
  modifyFile('lib/$name.dart', (c) {
    return "export '$exportUri';\n$c";
  });
}