addImportsTo method

void addImportsTo(
  1. Set<FileGenerator> imports
)

Adds dependencies of generate to imports.

For each .pb.dart file that the generated code needs to import, add its generator.

Implementation

void addImportsTo(Set<FileGenerator> imports) {
  for (final mg in _deps.values) {
    imports.add(mg.fileGen);
  }
}