getAllProviderElements method Null safety

Iterable<ProviderElementBase> getAllProviderElements()

Traverse the ProviderElementBases associated with this ProviderContainer.

Implementation

Iterable<ProviderElementBase> getAllProviderElements() sync* {
  for (final reader in _stateReaders.values) {
    if (reader._element != null && reader.container == this) {
      yield reader._element!;
    }
  }
}