flatten method

List<ProviderElement> flatten()

Flattens the module to a list of Providers.

The returned providers may have duplicate tokens, and an optimizing implementation should consider using ModuleReader.deduplicateProviders before generating code.

Implementation

List<ProviderElement> flatten() {
  return _flatten().toList();
}