flatten method
Flattens the module to a list of Provider
s.
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();
}